-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.7.5
-
Component/s: Internal Code
-
Fully Compatible
-
Windows
-
Server 2.7.6
In time_support.cpp on Windows, we emulate the precision of gettimeofday by a combination of GetSystemTimeAsFileTime & QueryPerformanceCounter with our own addition locking. Windows 8 and later offer a new function that we can use instead to get more accurate timing information without the overhead of our own locking.
From http://msdn.microsoft.com/en-us/library/windows/desktop/hh706895%28v=vs.85%29.aspx
The GetSystemTimePreciseAsFileTime function retrieves the current system date and time with the highest possible level of precision (<1us). The retrieved information is in Coordinated Universal Time (UTC) format.
See also http://msdn.microsoft.com/en-us/library/windows/desktop/dn553408%28v=vs.85%29.aspx