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 vstinner
Recipients belopolsky, vstinner
Date 2012-01-24.00:02:44
SpamBayes Score 1.75348e-07
Marked as misclassified No
Message-id <>
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.
Date User Action Args
2012-01-24 00:02:45vstinnersetrecipients: + vstinner, belopolsky
2012-01-24 00:02:45vstinnersetmessageid: <>
2012-01-24 00:02:45vstinnerlinkissue13845 messages
2012-01-24 00:02:45vstinnercreate