diff options
author | Russell Owen <rowen@uw.edu> | 2020-03-24 03:41:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 03:41:40 (GMT) |
commit | 6000087fe979705dc588a46a35da884cc0198c67 (patch) | |
tree | bb030336c380f218a2a878f204fb495371103d89 /Modules/timemodule.c | |
parent | 70d9d74411c121896820e137ecd56e55c087adcc (diff) | |
download | cpython-6000087fe979705dc588a46a35da884cc0198c67.zip cpython-6000087fe979705dc588a46a35da884cc0198c67.tar.gz cpython-6000087fe979705dc588a46a35da884cc0198c67.tar.bz2 |
closes bpo-40017: Add CLOCK_TAI constant to the time module. (GH-19096)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index f458966..e269cd0 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -1786,6 +1786,11 @@ time_exec(PyObject *module) return -1; } #endif +#ifdef CLOCK_TAI + if (PyModule_AddIntMacro(module, CLOCK_TAI) < 0) { + return -1; + } +#endif #ifdef CLOCK_UPTIME if (PyModule_AddIntMacro(module, CLOCK_UPTIME) < 0) { return -1; |