Using monotonic instead of process_time

This commit is contained in:
Raiyan Kamal 2020-05-22 21:54:13 -04:00
parent 9597a6066d
commit 159802aecd

View file

@ -22,7 +22,7 @@ def _get_timer():
options.append(time.clock)
except AttributeError:
# 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']
return timer