[Python-Dev] Use QueryPerformanceCounter() for time.monotonic() and/or time.highres()?
Glyph
glyph at twistedmatrix.com
Sat Mar 31 03:09:10 CEST 2012
On Mar 30, 2012, at 8:51 PM, Victor Stinner wrote:
> time.highres() (QPC) rate is only steady during a short duration
QPC is not even necessarily steady for a short duration, due to BIOS bugs, unless the code running your timer is bound to a single CPU core. <http://msdn.microsoft.com/en-us/library/ms644904> mentions SetThreadAffinityMask for this reason, despite the fact that it is usually steady for longer than that.
-glyph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120330/fbb5318b/attachment.html>
More information about the Python-Dev
mailing list