Closed neob91-close closed 1 year ago
Changes:
time.time()
time.monotonic()
threading.Event.isSet
threading.Event.wait
Just a thing I noticed while working on something else. time.monotonic() is preferred to time.time() when it comes to time measurements, because it's immune to changes and calibrations of the system clock.
Changes:
time.time()
withtime.monotonic()
for time measurements.threading.Event.isSet
call, becausethreading.Event.wait
already returns the same exact value.