This is the mail archive of the 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: [PATCH] gettimeofday time travels

Robert Collins writes:
 > > -----Original Message-----
 > > From: Philip Aston [] 
 > > Sent: Tuesday, April 16, 2002 6:30 PM
 > > To:
 > > Subject: Re: [PATCH] gettimeofday time travels 
 > >  <snip>
 > >
 > > I'm no W32 expert but:
 > Become one. :]. Seriously - the documentation you need is on MSDN.
 > Search for FileTime and follow your nose.

To be fair I'd already done this. Still, I went and had another look
and I have to say that IMHO the QueryPerformance* calls aren't really
designed for maintaining system time in the way that gettimeofday
does. They are designed for accurately measuring small time periods
and certainly don't take into account the effects of system time
changes or my suspend/resume issue. I guess the reason these calls
were introduced in the first place was to support more accurate times.

Having done my homework, my fix looks less dirty and I can't think of
other approaches except reverting the use of QueryPerformance*.

- Phil

Unsubscribe info:
Bug reporting:

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