Commit c59c924f authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

tools: Minor change.

Showing with 3 additions and 5 deletions
+3 -5
......@@ -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)
......
......@@ -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
#########
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment