diff options
Diffstat (limited to 'src/FbTk/Timer.hh')
-rw-r--r-- | src/FbTk/Timer.hh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/FbTk/Timer.hh b/src/FbTk/Timer.hh index bdaf3b8..2e82f2a 100644 --- a/src/FbTk/Timer.hh +++ b/src/FbTk/Timer.hh | |||
@@ -61,7 +61,7 @@ public: | |||
61 | 61 | ||
62 | static void updateTimers(int file_descriptor); | 62 | static void updateTimers(int file_descriptor); |
63 | 63 | ||
64 | int isTiming() const { return m_timing; } | 64 | int isTiming() const { return (m_start > 0); } |
65 | int getInterval() const { return m_interval; } | 65 | int getInterval() const { return m_interval; } |
66 | 66 | ||
67 | int doOnce() const { return m_once; } | 67 | int doOnce() const { return m_once; } |
@@ -77,11 +77,10 @@ protected: | |||
77 | private: | 77 | private: |
78 | RefCount<Slot<void> > m_handler; ///< what to do on a timeout | 78 | RefCount<Slot<void> > m_handler; ///< what to do on a timeout |
79 | 79 | ||
80 | bool m_timing; ///< clock running? | ||
81 | bool m_once; ///< do timeout only once? | 80 | bool m_once; ///< do timeout only once? |
82 | int m_interval; ///< Is an interval-only timer (e.g. clock), in seconds | 81 | int m_interval; ///< Is an interval-only timer (e.g. clock), in seconds |
83 | 82 | ||
84 | uint64_t m_start; ///< start time in microseconds | 83 | uint64_t m_start; ///< start time in microseconds, 0 if not running |
85 | uint64_t m_timeout; ///< time length in microseconds | 84 | uint64_t m_timeout; ///< time length in microseconds |
86 | }; | 85 | }; |
87 | 86 | ||