diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-04-02 22:31:17 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-04-02 22:31:17 (GMT) |
commit | 1470f35bc62c3cf21b209fa8e353d8ea9e71b46b (patch) | |
tree | fcb97b4ee4be3a1f3edbd04bda65e06a5e727e55 /Modules/timemodule.c | |
parent | 4ee2a8a127b99e3f7f1cd4ab17a93b240ab56661 (diff) | |
download | cpython-1470f35bc62c3cf21b209fa8e353d8ea9e71b46b.zip cpython-1470f35bc62c3cf21b209fa8e353d8ea9e71b46b.tar.gz cpython-1470f35bc62c3cf21b209fa8e353d8ea9e71b46b.tar.bz2 |
Add time.CLOCK_HIGHRES constant, needed on Solaris
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index f44e0c4..0fe1b17 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -962,6 +962,9 @@ PyInit_timezone(PyObject *m) { #ifdef CLOCK_MONOTONIC_RAW PyModule_AddIntMacro(m, CLOCK_MONOTONIC_RAW); #endif +#ifdef CLOCK_HIGHRES + PyModule_AddIntMacro(m, CLOCK_HIGHRES); +#endif #ifdef CLOCK_PROCESS_CPUTIME_ID PyModule_AddIntMacro(m, CLOCK_PROCESS_CPUTIME_ID); #endif |