Add start method to Timer
@@ -28,6 +28,13 @@ def time_remaining(self):
def update(self):
self.last_time = monotonic()
+ def start(self):
+ """
+ Start the timer only if not yet started
+ """
+ if not self.last_time:
+ self.update()
+
def wait_if_needed(self):
if not self.last_time:
self.update()
