strange bug in gettimeofday function

Matthew Woehlke mw_triad@users.sourceforge.net
Mon Feb 12 16:13:00 GMT 2007


Andrew Makhorin wrote:
> I detected a strange bug in the standard function gettimeofday.
> It *sometimes* reports the time which being expressed as the integer
> number of milliseconds is *less* than the time obtained *earlier* with
> the same function.

...how often is "often"? Also what version of Windows are you running 
(I'm too lazy to save and re-open your cygcheck, it seems Thunderbird 
doesn't think it is text)? And for the $64k question, do you use NTP?

I have seen this sort of behavior before (on Linux, IIRC, but it might 
have been Windows): it can be caused by NTP clock slew.

-- 
Matthew
Congratulations! You've won a free trip to the future! All you have to 
do to claim your prize is wait five minutes...


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list