From: Victor Stinner Date: Fri, 29 Aug 2014 15:00:17 +0000 (+0200) Subject: Issue #22043: Oops, fix perf_counter() on UNIX if no monotonic clock is X-Git-Tag: v3.5.0a1~994 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67ca33dbf44524516991d9152c4d8a7ff57f0335;p=thirdparty%2FPython%2Fcpython.git Issue #22043: Oops, fix perf_counter() on UNIX if no monotonic clock is available (unlikely) --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index abf4b8b622b9..c90d8f9294da 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -1046,9 +1046,8 @@ perf_counter(_Py_clock_info_t *info) use_monotonic = 0; PyErr_Clear(); } -#else - return floattime(info); #endif + return floattime(info); #endif }