X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ddb050fe8357a01b1fc52070ee9f87450c407c1c..7b0d371a7bbfb9e8d624eec9ed97e9a835f75ca7:/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() -