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.hh11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/FbTk/Timer.hh b/src/FbTk/Timer.hh
index 189c2af..bd55435 100644
--- a/src/FbTk/Timer.hh
+++ b/src/FbTk/Timer.hh
@@ -76,9 +76,9 @@ public:
76 76
77 int isTiming() const { return m_timing; } 77 int isTiming() const { return m_timing; }
78 int getInterval() const { return m_interval; } 78 int getInterval() const { return m_interval; }
79 79
80 int doOnce() const { return m_once; } 80 int doOnce() const { return m_once; }
81 81
82 const timeval &getTimeout() const { return m_timeout; } 82 const timeval &getTimeout() const { return m_timeout; }
83 const timeval &getStartTime() const { return m_start; } 83 const timeval &getStartTime() const { return m_start; }
84 void makeEndTime(timeval &tm) const; 84 void makeEndTime(timeval &tm) const;
@@ -92,12 +92,12 @@ private:
92 static void addTimer(Timer *timer); 92 static void addTimer(Timer *timer);
93 /// remove a timer from the static list 93 /// remove a timer from the static list
94 static void removeTimer(Timer *timer); 94 static void removeTimer(Timer *timer);
95 95
96 typedef std::list<Timer *> TimerList; 96 typedef std::list<Timer *> TimerList;
97 static TimerList m_timerlist; ///< list of all timers, sorted by next trigger time (start + timeout) 97 static TimerList m_timerlist; ///< list of all timers, sorted by next trigger time (start + timeout)
98 98
99 RefCount<Command> m_handler; ///< what to do on a timeout 99 RefCount<Command> m_handler; ///< what to do on a timeout
100 100
101 bool m_timing; ///< clock running? 101 bool m_timing; ///< clock running?
102 bool m_once; ///< do timeout only once? 102 bool m_once; ///< do timeout only once?
103 int m_interval; ///< Is an interval-only timer (e.g. clock) 103 int m_interval; ///< Is an interval-only timer (e.g. clock)
@@ -105,7 +105,6 @@ private:
105 105
106 timeval m_start; ///< start time 106 timeval m_start; ///< start time
107 timeval m_timeout; ///< time length 107 timeval m_timeout; ///< time length
108
109}; 108};
110 109
111} // end namespace FbTk 110} // end namespace FbTk