[Python-Dev] PEP 564: Add new time functions with nanosecond resolution

Victor Stinner victor.stinner at gmail.com
Sun Oct 22 19:54:37 EDT 2017

Le 22 oct. 2017 17:06, "Wes Turner" <wes.turner at gmail.com> a écrit :

Must they always use their own implementations of time., datetime.
__init__, fromordinal, fromtimestamp ?!

Yes, exactly.

Note: Adding resolution better than 1 us to datetime is not in the scope of
the PEP but there is an issue, open since a long time.

I don't think that time.time_ns() is usable for such experiment. Again,
calling a function is Python takes around 50 ns.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171023/9591fc4e/attachment.html>

More information about the Python-Dev mailing list