Fix update issue

This commit is contained in:
2025-12-30 18:59:37 +01:00
parent 25e17d6110
commit 58319e94ec

View File

@@ -43,11 +43,13 @@ class Clock:
break
self.millis -= 1
self.__notify_update()
if self.millis % 1000 == 0:
self.__notify_update()
time.sleep(0.001)
def __notify_update(self):
print(self.clock_to_str())
self.on_update(self.clock_to_str())
def __notify_terminated(self):