Forgot to return self

This commit is contained in:
Nexus 2023-05-30 19:55:13 +01:00
parent 6d3b5d2d63
commit 99b93a2aa2
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -47,6 +47,7 @@ class Timer:
def __enter__(self):
self._start_time = time.time()
return self
def __exit__(self, exc_type, exc_val, exc_tb):
self._end_time = time.time()