This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gettime time travels after suspend


> >I have a running process which prints out the result of gettimeofday()
> >at regular intervals. If I suspend and resume my machine then the
> >value returned by gettimeofday() is incorrect - it jumps several days
> >into the future. Doing the same with time() is fine.
> >
> >I don't want to point fingers, but I suspect the following 1.3.10
> >change:
> > - Use QueryPerformance* functions for gettimeofday calls. (cgf)
>
> Patches gratefully accepted.
There is a similar problem here with timeouts passed to
WaitForSingleObjectEx, and WaitForMultipleObjectsEx. I was thinking of
generating a patch that does a single retry when a Wait* times out. Is the
consensus that this would be useful or not?

Chris



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]