Add time.CLOCK_HIGHRES constant, needed on Solaris

This commit is contained in:
Victor Stinner 2012-04-03 00:31:17 +02:00
parent 4ee2a8a127
commit 1470f35bc6
2 changed files with 12 additions and 0 deletions

View file

@ -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