Spaces:
Runtime error
Runtime error
Fix timer counting twice
Browse files- utils/timing.py +0 -1
utils/timing.py
CHANGED
@@ -36,7 +36,6 @@ class Timer():
|
|
36 |
def __exit__(self, type, value, traceback):
|
37 |
end_time = time.time()
|
38 |
elapsed_time = end_time - self.start_time
|
39 |
-
Timer.total += elapsed_time
|
40 |
self.display.empty()
|
41 |
if self.portuguese:
|
42 |
Timer.expander.info(f'"{self.pt_name}" terminou em {elapsed_time:.2f} s')
|
|
|
36 |
def __exit__(self, type, value, traceback):
|
37 |
end_time = time.time()
|
38 |
elapsed_time = end_time - self.start_time
|
|
|
39 |
self.display.empty()
|
40 |
if self.portuguese:
|
41 |
Timer.expander.info(f'"{self.pt_name}" terminou em {elapsed_time:.2f} s')
|