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.

作者 glenn
收信人 belopolsky, eric.araujo, glenn, kristjan.jonsson, michael.foord, pitrou, vstinner
日期 2011-01-14.03:25:19
SpamBayes Score 1.2407765e-08
Marked as misclassified
Message-id <1294975524.44.0.275755066955.issue10278@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2011-01-14 03:25:24glenn修改recipients: + glenn, belopolsky, pitrou, kristjan.jonsson, vstinner, eric.araujo, michael.foord
2011-01-14 03:25:24glenn修改messageid: <1294975524.44.0.275755066955.issue10278@psf.upfronthosting.co.za>
2011-01-14 03:25:20glenn链接issue10278 messages
2011-01-14 03:25:19glenn创建