algbench.utils package

Module contents

class algbench.utils.Timer(runtime: float = 0.0)[source]

Bases: object

A simple timer for measuring time.

__init__(runtime: float = 0.0)[source]
remaining() float[source]

The remaining time.

time() float[source]

Time since the creation of the timer.

reset(runtime: float | None = None)[source]
is_out_of_time() bool[source]
lap(label)[source]
get_laps()[source]
check()[source]