[issue39484] time_ns() and time() cannot be compared on windows
Serhiy Storchaka
report at bugs.python.org
Mon Feb 3 08:37:38 EST 2020
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
The problem is that there is a double rounding in
time = float(time_ns) / 1e9
1. When convert time_ns to float.
2. When divide it by 1e9.
The formula
time = time_ns / 10**9
may be more accurate.
----------
nosy: +lemburg, mark.dickinson, rhettinger, stutzbach
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39484>
_______________________________________
More information about the Python-bugs-list
mailing list