diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-08-09 00:26:15 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-08-09 00:26:15 +0000 |
| commit | 9d3112aad388b4369a339b851aa2507a02bb2d4f (patch) | |
| tree | 744d27b53a25921978f8df8b1b1c2c836caa442c /lib/python/Components/Sources/Clock.py | |
| parent | ab2ae6bd08a0ef13fc7462d51fc3a9ab15509b17 (diff) | |
| download | enigma2-9d3112aad388b4369a339b851aa2507a02bb2d4f.tar.gz enigma2-9d3112aad388b4369a339b851aa2507a02bb2d4f.zip | |
fix caching
Diffstat (limited to 'lib/python/Components/Sources/Clock.py')
| -rw-r--r-- | lib/python/Components/Sources/Clock.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Components/Sources/Clock.py b/lib/python/Components/Sources/Clock.py index 7f1a8d7f..4833ddde 100644 --- a/lib/python/Components/Sources/Clock.py +++ b/lib/python/Components/Sources/Clock.py @@ -1,4 +1,5 @@ from Tools.Event import Event +from Components.Element import cached from enigma import eTimer import time @@ -11,6 +12,7 @@ class Clock(Source): self.clock_timer.timeout.get().append(self.poll) self.clock_timer.start(1000) + @cached def getClock(self): return time.time() @@ -25,4 +27,3 @@ class Clock(Source): else: self.clock_timer.start(1000) self.poll() - |
