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.

作者 kristjan.jonsson
收信人 kristjan.jonsson
日期 2010-11-01.15:10:05
SpamBayes Score 8.37898e-08
Marked as misclassified
Message-id <1288624210.23.0.0497533122542.issue10278@psf.upfronthosting.co.za>
In-reply-to
内容
If measuring time across blocking calls, such as thread synchronization, one currently must time.time().  This is because time.clock() measures cpu seconds on unix.  On windows, however, time.clock() would be more appropriate because it measures wall-clock time.

To avoid having to put platform clauses everywhere, this patch adds time.wallclock().
The current implementation is a simple alias to time.clock on windows and time.time otherwise.  Future improvements may add a better implementation on those non-windows platforms that support it.
历史
日期 用户 动作 参数
2010-11-01 15:10:10kristjan.jonsson修改recipients: + kristjan.jonsson
2010-11-01 15:10:10kristjan.jonsson修改messageid: <1288624210.23.0.0497533122542.issue10278@psf.upfronthosting.co.za>
2010-11-01 15:10:08kristjan.jonsson链接issue10278 messages
2010-11-01 15:10:07kristjan.jonsson创建