WrightTools.kit.Timer

class WrightTools.kit.Timer(verbose=True)[source]

Bases: object

Context manager for timing code.

>>> with Timer():
...     your_code()
start

Timestamp for start in seconds.

end

Timestamp for end in seconds.

interval

Timedelta for end - start in seconds.

__enter__(progress=None)[source]
__exit__(type, value, traceback)[source]
__init__(verbose=True)[source]

Initialize self. See help(type(self)) for accurate signature.