Glenn Maynard <glennfmayn...@gmail.com> added the comment:

I agree with Victor: Python should provide a function to supply monotonic time, 
which is what's really wanted for measuring time deltas.  Far too many 
applications incorrectly use the system clock for this, and Python makes this 
worse by not providing any standard library function to allow people to do this 
correctly.

In Windows, it should probably use GetTickCount64 if available, otherwise 
GetTickCount with logic to handle wrapping.  I think QueryPerformanceCounter is 
problematic as a general-purpose timer: depending on the hardware and Windows 
version, it can be offset differently across CPUs, and may not be reliable on 
some processors.  It may be fixed in Vista or Win7, I'm not sure; if so it's 
much higher resolution than GTC.

----------
nosy: +glenn

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

Reply via email to