Fix Bug in timing MachineErrorChecker execution

We want the Logger in line 215 to give the execution time in seconds
so we don't want the start time to be the epoch.
Currently the logger will output something like
time = 1659518458.5s
not like
time = 3.0s
This commit is contained in:
digitalfrost 2022-08-03 11:26:39 +02:00
parent cf548613ca
commit 556b009a9d

View file

@ -43,7 +43,7 @@ class MachineErrorChecker(QObject):
self._application = cura.CuraApplication.CuraApplication.getInstance() self._application = cura.CuraApplication.CuraApplication.getInstance()
self._machine_manager = self._application.getMachineManager() self._machine_manager = self._application.getMachineManager()
self._start_time = 0. # measure checking time self._start_time = time.time() # measure checking time
# This timer delays the starting of error check so we can react less frequently if the user is frequently # This timer delays the starting of error check so we can react less frequently if the user is frequently
# changing settings. # changing settings.