trackers
Decorators used to monitor functions.
- trackers.timer(func)[source]
Timer function to be used as decorator.
Prints run time of decorated function. Printing can be turned off when running the decorated function by passing the extra kwarg print_runtime to the function. The functools wrapper is used to retain the name and docstring of the wrapped function (useful for autodoc with sphinx).