Message120130
| 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:10 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson |
| 2010年11月01日 15:10:10 | kristjan.jonsson | set | messageid: <1288624210.23.0.0497533122542.issue10278@psf.upfronthosting.co.za> |
| 2010年11月01日 15:10:08 | kristjan.jonsson | link | issue10278 messages |
| 2010年11月01日 15:10:07 | kristjan.jonsson | create |
|