20 inline constexpr
Timer()
25 void stop(){m_isRunning =
false;}
26 bool running()
const {
return m_isRunning;}
29 bool expired_cont(T msPeriod);
31 T started()
const {
return m_started;}
42 #if __cplusplus>=201103L
52 #if __cplusplus>=201103L
Timer< unsigned long > LongTimer
Timer unsigned long specialization.
Definition: Timer.h:43
Timer< unsigned short > ShortTimer
Timer unsigned short specialization.
Definition: Timer.h:53
simple timer
Definition: Timer.h:18
T elapsed()
Ticks since the timer was started.
Definition: Timer.cpp:65
bool expired(T msPeriod)
Timer has expired.
Definition: Timer.cpp:33
void start()
Start timer.
Definition: Timer.cpp:13