Replace usage of time.time() with time.monotonic() for duration calculations.
time.monotonic() is not affected by system clock updates (eg. due to NTP or daylight savings adjustments) resulting in a more reliable duration calculation.
time.perf_counter() was not used since alog is not a performance benchmarking focussed library.
Description
Replace usage of
time.time()
withtime.monotonic()
for duration calculations.time.monotonic()
is not affected by system clock updates (eg. due to NTP or daylight savings adjustments) resulting in a more reliable duration calculation.time.perf_counter()
was not used since alog is not a performance benchmarking focussed library.