SatCat5
satcat5::test::CountTimer Class Referencefinal

Detailed Description

Count calls to timer_event().

See also
poll::Timer

Definition at line 181 of file sim_utils.h.

#include <sim_utils.h>

Inheritance diagram for satcat5::test::CountTimer:
[legend]
Collaboration diagram for satcat5::test::CountTimer:
[legend]

Public Member Functions

void timer_event () override
 Child class MUST override this method.
 
unsigned count () const
 Returns the current counter value.
 
void count_reset ()
 Reset the counter to zero.
 
void timer_once (unsigned msec)
 Configure a one-time notification after X milliseconds.
 
void timer_every (unsigned msec)
 Configure a repeating notification every X milliseconds.
 
void timer_stop ()
 Stop all future notifications.
 
unsigned timer_interval () const
 Accessor for recurring timer interval, if one is set.
 
unsigned timer_remaining () const
 Accessor for time to next event, if one is set.
 

Static Public Member Functions

static unsigned count_timer ()
 Count all objects of this type, including idle timers.
 

Protected Attributes

unsigned m_count
 

Private Member Functions

void query (unsigned elapsed_msec)
 

Private Attributes

satcat5::poll::Timerm_next
 
unsigned m_trem
 
unsigned m_tnext
 

The documentation for this class was generated from the following file: