(func)
| 181 | """Decorator for timing functions.""" |
| 182 | |
| 183 | def decorator(func): |
| 184 | @functools.wraps(func) |
| 185 | def wrapper(*args, **kwargs): |
| 186 | with Timer(task): |
| 187 | return func(*args, **kwargs) |
| 188 | |
| 189 | return wrapper |
| 190 | |
| 191 | return decorator |
nothing calls this directly
no outgoing calls
no test coverage detected