Context manager to measure execution time.
()
| 17 | |
| 18 | @contextmanager |
| 19 | def time_it() -> float: |
| 20 | """Context manager to measure execution time.""" |
| 21 | start = time.perf_counter() |
| 22 | yield lambda: time.perf_counter() - start |
| 23 | |
| 24 | |
| 25 | class TestPerformanceRegression: |
no outgoing calls
no test coverage detected