mirror of
https://github.com/quantum5/optimize-later.git
synced 2025-04-24 20:41:57 -04:00
Using monotonic instead of process_time
This commit is contained in:
parent
9597a6066d
commit
159802aecd
|
@ -22,7 +22,7 @@ def _get_timer():
|
||||||
options.append(time.clock)
|
options.append(time.clock)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# Expected to occur in Python 3.8 since time.clock is removed in this version of Python.
|
# Expected to occur in Python 3.8 since time.clock is removed in this version of Python.
|
||||||
options.append(time.process_time)
|
options.append(time.monotonic)
|
||||||
|
|
||||||
timer = options[os.name == 'nt']
|
timer = options[os.name == 'nt']
|
||||||
return timer
|
return timer
|
||||||
|
|
Loading…
Reference in a new issue