1 from Components.Element import cached
2 from enigma import eTimer
3 from time import time as getTime
5 from Source import Source
10 self.clock_timer = eTimer()
11 self.clock_timer.callback.append(self.poll)
12 self.clock_timer.start(1000)
18 time = property(getClock)
21 self.changed((self.CHANGED_POLL,))
23 def doSuspend(self, suspended):
25 self.clock_timer.stop()
27 self.clock_timer.start(1000)
31 self.clock_timer.callback.remove(self.poll)