logging module -- better timestamp accuracy on Windows
benhoyt at gmail.com
Wed Feb 16 13:23:39 EST 2011
> AFAIK, the Windows performance counter has long-term accuracy issues,
> so neither is perfect. Preferably we should have a timer with the long-
> term accuracy of time.time and the short-term accuracy of time.clock.
Thanks for the tip -- yes, I hadn't thought about that, but you're right, QueryPerformanceCounter (and hence time.clock) veers away from the system time, and it's non-trivial to fix. See also:
More information about the Python-list