[Python-ideas] Add time.time_ns(): system clock with nanosecond resolution

Stefan Behnel stefan_ml at behnel.de
Fri Oct 13 10:57:28 EDT 2017


Victor Stinner schrieb am 13.10.2017 um 16:12:
> I would like to add new functions to return time as a number of
> nanosecond (Python int), especially time.time_ns().

I might have missed it while skipping through your post, but could you
quickly explain why improving the precision of time.time() itself wouldn't
help already? Would double FP precision not be accurate enough here?

Stefan



More information about the Python-ideas mailing list