Build @timed to log execution time in seconds and context manager Timing to measure block durations.
Constraints
Example
```python >>> TIMES.clear() >>> @timed ... def add(a, b): ... return a + b >>> add(2, 3) 5 >>> len(TIMES) == 1 True >>> TIMES[0] >= 0 True >>> TIMES.clear() >>> with Timing() as t: ... pass >>> len(TIMES) == 1 True >>> TIMES[0] >= 0 True ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints