Message151865
| Author |
vstinner |
| Recipients |
belopolsky, vstinner |
| Date |
2012年01月24日.00:02:44 |
| SpamBayes Score |
1.7534768e-07 |
| Marked as misclassified |
No |
| Message-id |
<1327363365.73.0.00740710968562.issue13845@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Python implements time.time() using gettimeofday() which has only a resolution of 1 microsecond because it uses the timeval structure which is only able to store microseconds.
Attached patch changes _PyTime_gettimeofday() to make it uses the timespec structure (which has a resolution has 1 nanosecond) and use GetSystemTimeAsFileTime() on Windows. So time.time() has a theorical resolution 10 times better than currently. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年01月24日 00:02:45 | vstinner | set | recipients:
+ vstinner, belopolsky |
| 2012年01月24日 00:02:45 | vstinner | set | messageid: <1327363365.73.0.00740710968562.issue13845@psf.upfronthosting.co.za> |
| 2012年01月24日 00:02:45 | vstinner | link | issue13845 messages |
| 2012年01月24日 00:02:45 | vstinner | create |
|