49 return m_time.s == 1 ;
58 else if( immediate() )
65 return m_time <= now ;
92 G_ASSERT( active() ) ;
A subsecond-resolution timestamp based on a time_t.
void doTimeout()
Used by TimerList to execute the onTimeout() callback.
G::EpochTime t() const
Used by TimerList to get the expiry epoch time.
Overload discriminator class for TimerList.
void add(TimerBase &, ExceptionHandler &)
Adds a timer.
static EpochTime now()
Returns the current epoch time.
An abstract interface for handling exceptions thrown out of event-loop callbacks (socket events...
static TimerList & instance()
Singleton access. Throws an exception if none.
void cancelTimer()
Cancels the timer.
void startTimer(unsigned int interval_s, unsigned int interval_us=0U)
Starts the timer so that it goes off after the given time interval.
virtual ~TimerBase()
Destructor.
void update(TimerBase &)
Called when a timer changes its value.
TimerBase(ExceptionHandler &)
Constructor.
bool expired(G::EpochTime &) const
Used by TimerList.
bool immediate() const
Used by TimerList.
void remove(TimerBase &)
Removes a timer from the list.