|
@@ -21,8 +21,9 @@ public:
|
|
void start();
|
|
void start();
|
|
void stop(){m_isRunning = false;}
|
|
void stop(){m_isRunning = false;}
|
|
bool running()const {return m_isRunning;}
|
|
bool running()const {return m_isRunning;}
|
|
- bool expired(T msPeriod);
|
|
|
|
- T elapsed();
|
|
|
|
|
|
+ bool expired(T msPeriod); // returns true only once after expiration, then stops running
|
|
|
|
+ T elapsed(); // returns the time in milliseconds since the timer was started or 0 otherwise
|
|
|
|
+ bool expired_cont(T msPeriod); // return true when continuosly when expired / not running
|
|
protected:
|
|
protected:
|
|
T started()const {return m_started;}
|
|
T started()const {return m_started;}
|
|
private:
|
|
private:
|