[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

Eryk Sun report at bugs.python.org
Fri Nov 13 18:17:21 EST 2020


Eryk Sun <eryksun at gmail.com> added the comment:

> suggest to use time.perf_counter_ns() instead of time.perf_counter() 
> for best precision.

QPC typically has a frequency of 1e7, which requires 24 bits for the fraction of a second. So a system can be up for years before the 53-bit precision of a float is an issue. What am I missing?

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37205>
_______________________________________


More information about the Python-bugs-list mailing list