STINNER Victor added the comment:

> "GetSystemTimeAdjustment is not the function to look at."

This sentence comes from 
http://stackoverflow.com/questions/7685762/windows-7-timing-functions-how-to-use-getsystemtimeadjustment-correctly
 which describes the wall clock (GetSystemTimeAsFileTime), not the monotonic 
clock (GetTickCount[64]).

GetTickCount[64] resolution cannot be better than 1 ms because its C structure 
has a resolution of 1 ms...

But I don't know any other *monotonic* clock with a better resolution.

Python 3.3 provides time.perf_counter(): "clock with the highest available 
resolution to measure a short duration". I added this function because of 
Windows, to give access to QueryPerformanceCounter().

@Tim: This issue is closed. If you believe that Python time functions are buggy 
on windows, which is quite possible, please open a *new* issue. (This issue was 
specific to OpenIndiana buildbot which looks to be ill.)

The C function pygettimeofday() which is used by time.time() and 
time.get_clock_info() uses GetSystemTimeAsFileTime() and 
GetSystemTimeAdjustment(). According to the article, there is a bug.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19999>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to