--- Python-3.7.1/Modules/timemodule.c 2018-12-10 05:22:09.700503256 +0000 +++ Python-3.7.1/Modules/timemodule.c 2018-12-10 05:16:59.207620063 +0000 @@ -1306,6 +1306,25 @@ _PyTime_GetThreadTimeWithInfo(_PyTime_t return 0; } +#elif defined(__sun) && defined(__SVR4) +#define HAVE_THREAD_TIME +static int +_PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info) +{ + _PyTime_t t; + + if (info) { + info->implementation = "gethrvtime()"; + info->resolution = 1e-9; + info->monotonic = 1; + info->adjustable = 0; + } + + t = _PyTime_FromNanoseconds(gethrvtime()); + *tp = t; + return 0; +} + #elif defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_PROCESS_CPUTIME_ID) #define HAVE_THREAD_TIME static int