time

Source code: time.seq

time.time()
class time.TimeInterval

Utility class for timing Seq code

Magic methods:

__init__()
__enter__()
__exit__()

Methods:

report(msg='', memory=False)
elapsed()
tick(msg, memory=False)
time.timing(msg: str = '')

Example usage:

from time import timing
with timing('foo function'):
    foo()  # prints runtime of foo