[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Some thing wrong in gettimeofday() ?
Thank you Johan,
Stupid me on last email :). I sent double information on gcc-cris version
instead of gcc-cris version and kernel version.
My kernel version is:
[root@Axis2 /var/tmp]52# cat /proc/version
Linux version 2.4.5 (email@example.com 20000427 (experimental))
#68 Mon Dec 10 20:09:05 CET 2001
So does the newest kernel version fix this bug?
> -----Original Message-----
> From: Johan Adolfsson [mailto:firstname.lastname@example.org]
> Sent: den 8 januari 2002 16:14
> To: Nguyen Thai; Jonas Holmberg; DEVB
> Subject: Re: Some thing wrong in gettimeofday() ?
> There is (was) a bug in the gettimeofday() implementation
> where it didn't detect underflow of the timer correctly
> causing the time to go backwords etc.
> This is fixed in our CVS some time ago, but I'm not sure
> if it's in the version on the developer web yet.
> What version of the kernel did you use?
> (cat /proc/version )
> BTW: I have also improved the timing resolution
> so you can get 67 ns resolution within a "jiffie"
> and thus get 1us resolution (instead of 52 us)
> in the gettimeofday() call.
> The smallest time between gettimeofday() calls
> I have seen with my solution is 4 us.
> Not checked in yet though...