time

Source code: time.seq

time.time()
class time.TimeInterval

Utility class for timing Seq code

Magic methods:

__enter__()
__exit__()
time.timing(msg: str = '')

Example usage:

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