aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Timer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Timer.cc')
-rw-r--r--src/FbTk/Timer.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FbTk/Timer.cc b/src/FbTk/Timer.cc
index 7d7a84b..60df968 100644
--- a/src/FbTk/Timer.cc
+++ b/src/FbTk/Timer.cc
@@ -85,6 +85,11 @@ void Timer::setTimeout(const timeval &t) {
85 m_timeout.tv_usec = t.tv_usec; 85 m_timeout.tv_usec = t.tv_usec;
86} 86}
87 87
88void Timer::setTimeout(unsigned int secs, unsigned int usecs) {
89 m_timeout.tv_sec = secs;
90 m_timeout.tv_usec = usecs;
91}
92
88void Timer::setCommand(RefCount<Command<void> > &cmd) { 93void Timer::setCommand(RefCount<Command<void> > &cmd) {
89 m_handler = cmd; 94 m_handler = cmd;
90} 95}