homepage

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 kristjan.jonsson
Recipients kristjan.jonsson
Date 2010年11月01日.15:10:05
SpamBayes Score 8.37898e-08
Marked as misclassified No
Message-id <1288624210.23.0.0497533122542.issue10278@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010年11月01日 15:10:10kristjan.jonssonsetrecipients: + kristjan.jonsson
2010年11月01日 15:10:10kristjan.jonssonsetmessageid: <1288624210.23.0.0497533122542.issue10278@psf.upfronthosting.co.za>
2010年11月01日 15:10:08kristjan.jonssonlinkissue10278 messages
2010年11月01日 15:10:07kristjan.jonssoncreate

AltStyle によって変換されたページ (->オリジナル) /