some minor speedups using caches and more selective updating
[enigma2.git] / lib / python / Components / Sources / Clock.py
index 608a719027f83157cb38f940e28b7e3dfa533c89..e2d7faa7fe1c212104b2069eaf71088618c3aa5e 100644 (file)
@@ -8,10 +8,13 @@ class Clock(Source):
        def __init__(self):
                Source.__init__(self)
                self.clock_timer = eTimer()
-               self.clock_timer.timeout.get().append(self.changed)
+               self.clock_timer.timeout.get().append(self.poll)
                self.clock_timer.start(1000)
 
        def getClock(self):
                return time.time()
 
        time = property(getClock)
+
+       def poll(self):
+               self.changed((self.CHANGED_POLL,))