Fix update issue
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user