kernel32: Use the monotonic counter in GetTickCount64.

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Wed Feb 6 11:47:59 CST 2013


Hi,

I believe we should use this opportunity and review the usage of timers in Wine.

E.g. I have a patch to have CreateTimerqueue use the monotonic timer too
that I'll submit after some more testing.
Mmdevapi's audio currently depends on the TimerQueue which IMHO erroneously
depends on gettimeofday() instead of clocks not affected by DST and NTP.
As a result, strange things should happen to Wine audio each time the clock is adjusted...

What do you think?

BTW, MSDN is wonderfully inconsistent - witness "system time":

"System time is the current date and time of day. [...] The system bases system time on coordinated universal time (UTC)."
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724961%28v=vs.85%29.aspx

"The system time is the time, in milliseconds, since the Microsoft Windows operating system was started."
http://msdn.microsoft.com/en-us/library/windows/desktop/dd743637%28v=vs.85%29.aspx

The latter is within the context of windows multimedia.  I believe different teams at MS wrote documents
without cross-checking their use of vocabulary. As a result, expressions don't mean the same things.

Regards,
 Jörg Höhle


More information about the wine-devel mailing list