threading
time
Source code: time.seq
Utility class for timing Seq code
Magic methods:
__init__() __enter__() __exit__()
Methods:
report(msg='', memory=False)¶ elapsed()¶ tick(msg, memory=False)¶
Example usage:
from time import timing with timing('foo function'): foo() # prints runtime of foo
previous