Bases: object
object
A context manager to measure the time of any operation.
Usage: >>> with Timer() as timer: >>> do_something() >>> print(f”Did something in {timer.elapsed()} seconds.”)
Aleph Network Client