29 Timer(NDB_TICKS delay_time) {
36 inline void setDelay(NDB_TICKS delay_time) { m_delay = delay_time; }
37 inline NDB_TICKS getDelay()
const {
return m_delay; }
42 inline void reset(NDB_TICKS now) {
44 m_alarm_time = m_current_time + m_delay;
47 inline bool check(NDB_TICKS now) {
51 if (now > m_alarm_time)
return true;
56 if (now >= m_current_time)
return false;
66 NDB_TICKS m_current_time;
67 NDB_TICKS m_alarm_time;