Skip to main content

Module timeit

Module timeit 

Source
Expand description

Implement a context manager for timing the decorated function

Structs§

DispatchContext
Dispatch context, using a fixed label in logs and accumulating the time in the DISPATCH_TIME variable
GenericContext
Default context for timer, not accumularinging the time s uaing the decorated function name in the logs
GenericTimer
Generic timing implementation shared by all timing contexts
InvestmentContext
Investment context, using a fixed label in logs and accumulating the time in the INVESTMENT_TIME variable

Statics§

DISPATCH_TIME 🔒
INVESTMENT_TIME 🔒

Traits§

TimeContext
Trait providing the context of actions to be carried by the timer

Type Aliases§

DispatchTimer
Dispatch context for timing a function call
InvestmentTimer
Investment context for timing a function call