tools: Minor change.

mesh
Pierre-Antoine Rouby 2023-04-25 12:09:21 +02:00
parent 1b2791edb5
commit c59c924f58
2 changed files with 3 additions and 5 deletions

View File

@ -16,7 +16,6 @@ from View.MainWindow import ApplicationWindow
from Model.Study import Study
def main():
reset_timers()
conf = Config.load()
app = QApplication(sys.argv)

View File

@ -61,15 +61,14 @@ def timer(func):
end_time = time.perf_counter()
run_time = end_time - start_time
if func not in _timers:
_timers[func] = 0
_calls[func] = 0
_timers[func] += run_time
_calls[func] += 1
return value
_timers[func] = 0
_calls[func] = 0
return wrapper
#########