git.cweiske.de
/
enigma2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add possibility to view eventinfo in recorded movielist (move cursor to
[enigma2.git]
/
lib
/
python
/
Components
/
Sources
/
Clock.py
1
from Tools.Event import Event
2
from enigma import eTimer
3
import time
4
5
from Source import Source
6
7
class Clock(Source):
8
def __init__(self):
9
Source.__init__(self)
10
self.clock_timer = eTimer()
11
self.clock_timer.timeout.get().append(self.changed)
12
self.clock_timer.start(1000)
13
14
def getClock(self):
15
return time.time()
16
17
time = property(getClock)