aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Timer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Timer.hh')
-rw-r--r--src/FbTk/Timer.hh14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/FbTk/Timer.hh b/src/FbTk/Timer.hh
index 773d5b8..189c2af 100644
--- a/src/FbTk/Timer.hh
+++ b/src/FbTk/Timer.hh
@@ -74,12 +74,14 @@ public:
74 /// update all timers 74 /// update all timers
75 static void updateTimers(int file_descriptor); 75 static void updateTimers(int file_descriptor);
76 76
77 inline int isTiming() const { return m_timing; } 77 int isTiming() const { return m_timing; }
78 inline int getInterval() const { return m_interval; } 78 int getInterval() const { return m_interval; }
79 inline int doOnce() const { return m_once; }
80 79
81 inline const timeval &getTimeout() const { return m_timeout; } 80 int doOnce() const { return m_once; }
82 inline const timeval &getStartTime() const { return m_start; } 81
82 const timeval &getTimeout() const { return m_timeout; }
83 const timeval &getStartTime() const { return m_start; }
84 void makeEndTime(timeval &tm) const;
83 85
84protected: 86protected:
85 /// force a timeout 87 /// force a timeout
@@ -92,7 +94,7 @@ private:
92 static void removeTimer(Timer *timer); 94 static void removeTimer(Timer *timer);
93 95
94 typedef std::list<Timer *> TimerList; 96 typedef std::list<Timer *> TimerList;
95 static TimerList m_timerlist; ///< list of all timers 97 static TimerList m_timerlist; ///< list of all timers, sorted by next trigger time (start + timeout)
96 98
97 RefCount<Command> m_handler; ///< what to do on a timeout 99 RefCount<Command> m_handler; ///< what to do on a timeout
98 100