This is the mail archive of the cygwin@sources.redhat.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]

Re: gettimeofday is 1000 us slow



> In cygwin-1.1.1/winsup/cygwin/times.cc, line 180, s.wMilliseconds is
> set to 1, but it should be zero.

Fixed.

> The correct value for factor is 0x19db1ded53e8000LL, not
> 0x19db1ded53ea710LL.

Fixed.

> In line 175, the correct value for s.wDayOfWeek is 4, not 5,

Fixed, but you're right about it being ignored.

> If the time is obtained directly as a FILETIME with
> GetSystemTimeAsFileTime(), then Windows 2000 gives you fractions of
> milliseconds, although I have not verified their accuracy.

Changed.  NT's internal system time resolution is only a millisecond
anyway, documentation notwithstanding.  If anyone has evidence to the
contrary for W2K, I'd be interested in hearing it.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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