]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110850: Add PyTime_t C API (GH-115215)
authorPetr Viktorin <encukou@gmail.com>
Mon, 12 Feb 2024 17:13:10 +0000 (18:13 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Feb 2024 17:13:10 +0000 (18:13 +0100)
commit879f4546bfbc9c47ef228e7c3d2f126f3d8d64bf
tree967b09783ee2a988eb605f9c905eedb12b691732
parentc39272e143b346bd6a3c04ca4fbf299163888277
gh-110850: Add PyTime_t C API (GH-115215)

* gh-110850: Add PyTime_t C API

Add PyTime_t API:

* PyTime_t type.
* PyTime_MIN and PyTime_MAX constants.
* PyTime_AsSecondsDouble(), PyTime_Monotonic(),
  PyTime_PerfCounter() and PyTime_GetSystemClock() functions.

Co-authored-by: Victor Stinner <vstinner@python.org>
19 files changed:
Doc/c-api/time.rst [new file with mode: 0644]
Doc/c-api/utilities.rst
Doc/conf.py
Doc/whatsnew/3.13.rst
Include/Python.h
Include/cpython/pytime.h [new file with mode: 0644]
Include/internal/pycore_time.h
Lib/test/test_capi/test_time.py [new file with mode: 0644]
Lib/test/test_time.py
Misc/NEWS.d/next/C API/2023-11-16-02-07-48.gh-issue-110850.DQGNfF.rst [new file with mode: 0644]
Modules/Setup.stdlib.in
Modules/_randommodule.c
Modules/_testcapi/parts.h
Modules/_testcapi/time.c [new file with mode: 0644]
Modules/_testcapimodule.c
Modules/_testinternalcapi/pytime.c
PCbuild/_testcapi.vcxproj
PCbuild/_testcapi.vcxproj.filters
Python/pytime.c