summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ClockTool.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc
index 709abd8..cf56da7 100644
--- a/src/ClockTool.cc
+++ b/src/ClockTool.cc
@@ -148,10 +148,11 @@ ClockTool::ClockTool(const FbTk::FbWindow &parent,
148 148
149 _FB_USES_NLS; 149 _FB_USES_NLS;
150 150
151 // setup timer to update the graphics each second 151 // setup timer to check the clock every 0.01 second
152 // if nothing has changed, it wont update the graphics
152 timeval delay; 153 timeval delay;
153 delay.tv_sec = 1; 154 delay.tv_sec = 0;
154 delay.tv_usec = 0; 155 delay.tv_usec = 100000;
155 m_timer.setTimeout(delay); 156 m_timer.setTimeout(delay);
156 FbTk::RefCount<FbTk::Command> update_graphic(new FbTk::SimpleCommand<ClockTool>(*this, 157 FbTk::RefCount<FbTk::Command> update_graphic(new FbTk::SimpleCommand<ClockTool>(*this,
157 &ClockTool::updateTime)); 158 &ClockTool::updateTime));