aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources/Clock.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-07-30 22:56:43 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-07-30 22:56:43 +0000
commit1557c715e461d5a7deb04bb008c6497441351bbe (patch)
tree8a378b20ca3bebab0b2eca1742c10dfd746cb2a1 /lib/python/Components/Sources/Clock.py
parentb8783e5b26a7dd0601bece623c4cbfe19f57977b (diff)
downloadenigma2-1557c715e461d5a7deb04bb008c6497441351bbe.tar.gz
enigma2-1557c715e461d5a7deb04bb008c6497441351bbe.zip
some minor speedups using caches and more selective updating
Diffstat (limited to 'lib/python/Components/Sources/Clock.py')
-rw-r--r--lib/python/Components/Sources/Clock.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Components/Sources/Clock.py b/lib/python/Components/Sources/Clock.py
index 608a7190..e2d7faa7 100644
--- a/lib/python/Components/Sources/Clock.py
+++ b/lib/python/Components/Sources/Clock.py
@@ -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,))