add accumulation of captured time

This commit is contained in:
2025-11-13 19:04:55 +01:00
parent a54b19b938
commit 0e48ce265c
5 changed files with 26 additions and 4 deletions

View File

@@ -42,3 +42,8 @@ class TimeSlot():
def end_now(self):
self.end = datetime.now()
def duration(self) -> datetime.timedelta:
end = self.end
if not end: end = datetime.now()
return self.end - self.start