X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ddb050fe8357a01b1fc52070ee9f87450c407c1c..3285eb3ebcd0ba134ac6b80337f8519d5a0da5b0:/lib/python/Components/Sources/Clock.py diff --git a/lib/python/Components/Sources/Clock.py b/lib/python/Components/Sources/Clock.py index 7f1a8d7f..8341ebec 100644 --- a/lib/python/Components/Sources/Clock.py +++ b/lib/python/Components/Sources/Clock.py @@ -1,6 +1,6 @@ -from Tools.Event import Event +from Components.Element import cached from enigma import eTimer -import time +from time import time as getTime from Source import Source @@ -11,8 +11,9 @@ class Clock(Source): self.clock_timer.timeout.get().append(self.poll) self.clock_timer.start(1000) + @cached def getClock(self): - return time.time() + return getTime() time = property(getClock) @@ -25,4 +26,3 @@ class Clock(Source): else: self.clock_timer.start(1000) self.poll() -