Message120130
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. |
|
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 | |
|