Different total runtime for CliTimer on Linux vs Windows
Running this snippet (taken from CliTimer's docstring)
import time
from ptvpy._cli_utils import CliTimer
with CliTimer("iterating", total=20, animated=True) as timer:
for _ in range(20):
time.sleep(0.1)
timer.update()
will pretty consistently return
-
iterating: ... 20/20 (100.0%), 2.0 s (+ 0 s) | done
on Linux and -
iterating: ... 20/20 (100.0%), 2.2 s (+ 0 s) | done
on Windows (only tested in CI and virtual machines).
As seen here: https://gitlab.com/tud-mst/ptvpy/-/jobs/428362705#L435
Figure out, why there is a difference and if it matters.
Edited by Lars Grüter