module documentation
This module provides a context manager to measure the elapsed time of a block of code. It can also be used as a decorator.
Example
with perfTimer(myCallback):
# do something
@perfTimer(lambda ms: print(f'someFunction took: {ms} ms'))
def someFunction():
# do something
| Function | perf |
Meassure and print the elapsed time. |