[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Timing of initial string
From: |
Pavel Machek |
Subject: |
Re: Timing of initial string |
Date: |
Fri, 31 May 2002 21:06:34 +0200 |
User-agent: |
Mutt/1.3.28i |
Hi!
> ==============================================
> struct timeval t0,t1,t2;
> ...
> gettimeofday(&t0,NULL);
> // for (count = 0; count < glink->InitLength; count++) {
> for (count = 0; count < 10; count++) {
> // usleep(100);
> usleep(20000L);
> device_write(&init_char, 1);
> }
usleep sleeps 10msec minimum. do busy-loop with gettimeofday.
Pavel
--
(about SSSCA) "I don't say this lightly. However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa