pypeliner.utils.decorators
Decorators module, contains exec_timer decorator.
Functions
|
When a function is wrapped with this decorator, it will time the function |
Module Contents
- pypeliner.utils.decorators.exec_timer(name: str = '', decimal_places: int = 3)
When a function is wrapped with this decorator, it will time the function execution.
- Args:
- name: verbose function name, if not specified it will use the
function’s __name__ magic attribute as a default value.
decimal_places: the number of decimal points for the measured time.
- Returns:
same as the function return value.