diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-08-29 15:00:17 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-08-29 15:00:17 (GMT) |
commit | 67ca33dbf44524516991d9152c4d8a7ff57f0335 (patch) | |
tree | f68cf23a0deed79b60c8209b62dd2a48fb0755d5 /Modules/timemodule.c | |
parent | 5488449ba467bb9baa8c759c7f8534cb2e8d0224 (diff) | |
download | cpython-67ca33dbf44524516991d9152c4d8a7ff57f0335.zip cpython-67ca33dbf44524516991d9152c4d8a7ff57f0335.tar.gz cpython-67ca33dbf44524516991d9152c4d8a7ff57f0335.tar.bz2 |
Issue #22043: Oops, fix perf_counter() on UNIX if no monotonic clock is
available (unlikely)
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index abf4b8b..c90d8f9 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 } |