mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Forgot to return self
This commit is contained in:
parent
6d3b5d2d63
commit
99b93a2aa2
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ class Timer:
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
self._start_time = time.time()
|
self._start_time = time.time()
|
||||||
|
return self
|
||||||
|
|
||||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||||
self._end_time = time.time()
|
self._end_time = time.time()
|
||||||
|
|
Loading…
Reference in a new issue