
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2017-10-13 21:34 byvstinner, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 3989 | merged | vstinner,2017-10-13 21:35 | |
| PR 11189 | merged | vstinner,2018-12-17 10:42 | |
| PR 12287 | closed | ned.deily,2019-03-12 09:39 | |
| Messages (4) | |||
|---|---|---|---|
| msg304365 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2017-10-13 21:34 | |
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.For the full rationale, see my thread on python-ideas:[Python-ideas] Add time.time_ns(): system clock with nanosecond resolutionhttps://mail.python.org/pipermail/python-ideas/2017-October/047318.html | |||
| msg304475 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2017-10-16 14:47 | |
> For the full rationale, see my thread on python-ideas: (...)I just created thePEP 564: "Add new time functions with nanosecond resolution". | |||
| msg305426 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2017-11-02 14:28 | |
New changesetc29b585fd4b5a91d17fc5dd41d86edff28a30da3 by Victor Stinner in branch 'master':bpo-31784: ImplementPEP 564: add time.time_ns() (#3989)https://github.com/python/cpython/commit/c29b585fd4b5a91d17fc5dd41d86edff28a30da3 | |||
| msg332045 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2018-12-18 10:45 | |
New changeset62a68b762a479a72c3defba9ace5f72a0063c5c6 by Victor Stinner in branch 'master':bpo-31784: Use time.time_ns() in uuid.uuid1() (GH-11189)https://github.com/python/cpython/commit/62a68b762a479a72c3defba9ace5f72a0063c5c6 | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:53 | admin | set | github: 75965 |
| 2019-03-12 09:39:13 | ned.deily | set | pull_requests: +pull_request12266 |
| 2018-12-18 10:45:17 | vstinner | set | messages: +msg332045 |
| 2018-12-17 10:42:03 | vstinner | set | pull_requests: +pull_request10427 |
| 2017-11-02 15:13:05 | vstinner | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2017-11-02 14:28:30 | vstinner | set | messages: +msg305426 |
| 2017-10-16 14:47:48 | vstinner | set | messages: +msg304475 |
| 2017-10-16 14:46:59 | vstinner | set | title: Add time.time_ns(): get time with nanosecond resolution -> Implementation of the PEP 564: Add time.time_ns() |
| 2017-10-13 21:35:12 | vstinner | set | keywords: +patch stage: patch review pull_requests: +pull_request3965 |
| 2017-10-13 21:34:15 | vstinner | create | |