summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2024-02-12 17:13:10 (GMT)
committerGitHub <noreply@github.com>2024-02-12 17:13:10 (GMT)
commit879f4546bfbc9c47ef228e7c3d2f126f3d8d64bf (patch)
tree967b09783ee2a988eb605f9c905eedb12b691732 /Modules/_testcapimodule.c
parentc39272e143b346bd6a3c04ca4fbf299163888277 (diff)
downloadcpython-879f4546bfbc9c47ef228e7c3d2f126f3d8d64bf.zip
cpython-879f4546bfbc9c47ef228e7c3d2f126f3d8d64bf.tar.gz
cpython-879f4546bfbc9c47ef228e7c3d2f126f3d8d64bf.tar.bz2
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>
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index e67de3e..b03f871 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -4107,6 +4107,9 @@ PyInit__testcapi(void)
if (_PyTestCapi_Init_Hash(m) < 0) {
return NULL;
}
+ if (_PyTestCapi_Init_Time(m) < 0) {
+ return NULL;
+ }
PyState_AddModule(m, &_testcapimodule);
return m;