Message361296
> The problem is that there is a double rounding in [...]
Actually `float(x) / 1e9` and `x / 1e9` seems to produce the same results:
```
import time
import itertools
now = time.time_ns()
for x in itertools.count(now):
assert float(x) / 1e9 == x / 1e9
```
> The formula `time = time_ns / 10**9` may be more accurate.
Well that seems to not be the case, see the plots and the corresponding code. I might have made a mistake though, please let me know if I got something wrong :) |
|
Date |
User |
Action |
Args |
2020-02-03 14:19:38 | vxgmichel | set | recipients:
+ vxgmichel, lemburg, rhettinger, mark.dickinson, vstinner, larry, stutzbach, serhiy.storchaka |
2020-02-03 14:19:38 | vxgmichel | set | messageid: <1580739578.23.0.57688715998.issue39484@roundup.psfhosted.org> |
2020-02-03 14:19:38 | vxgmichel | link | issue39484 messages |
2020-02-03 14:19:38 | vxgmichel | create | |
|