pythonwrench.time module¶ class pythonwrench.time.Ticker(*, get_time_fn: ~typing.Callable[[], float] = <built-in function perf_counter>, prev_tick: float | None = None)[source]¶ Bases: object set_prev_tick(prev_tick: float | None = None) → None[source]¶ Set tick time. tick() → float[source]¶ Set tick time and returns duration since last tick.