Record idle time

This commit is contained in:
Veronica K. B. Olsen
2021-02-08 21:58:38 +01:00
parent 479975fdff
commit 407f12760c
2 changed files with 21 additions and 6 deletions
+2 -2
View File
@@ -175,13 +175,13 @@ class GuiMainStatus(QStatusBar):
self.statsText.setToolTip("Project word count (session change)")
return
def updateTime(self):
def updateTime(self, idleTime=0.0):
"""Update the session clock.
"""
if self.refTime is None:
self.timeText.setText("00:00:00")
else:
self.timeText.setText(formatTime(round(time() - self.refTime)))
self.timeText.setText(formatTime(round(time() - self.refTime - idleTime)))
return
# END Class GuiMainStatus