qis.timer¶
- qis.timer(func)[source]¶
decorator printing the wall-clock runtime of the decorated function.
Runtimes under a minute print in seconds, longer ones in minutes and seconds. Intended for the long-running research entry points - a rolling backtest, a covariance sweep - where the cost of a change is worth seeing without reaching for a profiler.
- Parameters:
func – the function to wrap
- Returns:
the wrapped function, which returns whatever
funcreturns