This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author glenn
Recipients belopolsky, eric.araujo, glenn, kristjan.jonsson, michael.foord, pitrou, vstinner
Date 2011-01-14.03:25:19
SpamBayes Score 1.2407765e-08
Marked as misclassified No
Message-id <1294975524.44.0.275755066955.issue10278@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-01-14 03:25:24glennsetrecipients: + glenn, belopolsky, pitrou, kristjan.jonsson, vstinner, eric.araujo, michael.foord
2011-01-14 03:25:24glennsetmessageid: <1294975524.44.0.275755066955.issue10278@psf.upfronthosting.co.za>
2011-01-14 03:25:20glennlinkissue10278 messages
2011-01-14 03:25:19glenncreate