git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
preliminary translator about screen - can be displayed by pressing 'green' in about...
[enigma2.git]
/
lib
/
python
/
Components
/
Sources
/
Clock.py
diff --git
a/lib/python/Components/Sources/Clock.py
b/lib/python/Components/Sources/Clock.py
index 7f1a8d7f32bfadd0aae542a8d497e176a056da97..8341ebecc9f734e526d2f14148755495ea0b3156 100644
(file)
--- 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
from enigma import eTimer
-
import t
ime
+
from time import time as getT
ime
from Source import Source
from Source import Source
@@
-11,8
+11,9
@@
class Clock(Source):
self.clock_timer.timeout.get().append(self.poll)
self.clock_timer.start(1000)
self.clock_timer.timeout.get().append(self.poll)
self.clock_timer.start(1000)
+ @cached
def getClock(self):
def getClock(self):
- return
time.t
ime()
+ return
getT
ime()
time = property(getClock)
time = property(getClock)
@@
-25,4
+26,3
@@
class Clock(Source):
else:
self.clock_timer.start(1000)
self.poll()
else:
self.clock_timer.start(1000)
self.poll()
-