generics.timer

generics.timer(operation_name=None)

Decorator to measure the execution time of a function or method, logged at DEBUG level.

Parameters

Name Type Description Default
operation_name str | None The name of the operation to be timed. If None, the name of the function or method will be used. None

Returns

Name Type Description
Callable The decorated function or method
Back to top