You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee=Noneclosed_at=<Date2017-11-02.15:13:05.426>created_at=<Date2017-10-13.21:34:15.734>labels= ['3.7', 'type-feature', 'library']
title='Implementation of the PEP 564: Add time.time_ns()'updated_at=<Date2019-03-12.09:39:13.861>user='https://github.com/vstinner'
time.time() returns time as a float, but the conversion to float lose precision at the nanosecond resolution.
I propose to add a new time.time_ns() function which returns time as an integer number of nanoseconds since epoch. It's similar to the st_mtime_ns field of os.stat_result which extended the old st_mtime field.