diff options
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/Timer.cc | 2 | ||||
-rw-r--r-- | src/FbTk/Timer.hh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/Timer.cc b/src/FbTk/Timer.cc index 1597fa3..efecc5e 100644 --- a/src/FbTk/Timer.cc +++ b/src/FbTk/Timer.cc | |||
@@ -60,7 +60,7 @@ Timer::~Timer() { | |||
60 | } | 60 | } |
61 | 61 | ||
62 | 62 | ||
63 | void Timer::setTimeout(long t) { | 63 | void Timer::setTimeout(time_t t) { |
64 | m_timeout.tv_sec = t / 1000; | 64 | m_timeout.tv_sec = t / 1000; |
65 | m_timeout.tv_usec = t; | 65 | m_timeout.tv_usec = t; |
66 | m_timeout.tv_usec -= (m_timeout.tv_sec * 1000); | 66 | m_timeout.tv_usec -= (m_timeout.tv_sec * 1000); |
diff --git a/src/FbTk/Timer.hh b/src/FbTk/Timer.hh index 961d4d7..5949b73 100644 --- a/src/FbTk/Timer.hh +++ b/src/FbTk/Timer.hh | |||
@@ -59,7 +59,7 @@ public: | |||
59 | 59 | ||
60 | inline void fireOnce(bool once) { m_once = once; } | 60 | inline void fireOnce(bool once) { m_once = once; } |
61 | /// set timeout | 61 | /// set timeout |
62 | void setTimeout(long val); | 62 | void setTimeout(time_t val); |
63 | /// set timeout | 63 | /// set timeout |
64 | void setTimeout(timeval val); | 64 | void setTimeout(timeval val); |
65 | void setCommand(RefCount<Command> &cmd); | 65 | void setCommand(RefCount<Command> &cmd); |