Timer Class¶
- class TimerClass¶
TimerClass. The Timer Class provides access to a simple scheduler. Reflex routines can be written which will be executed upon expiration of the timer entity. The timer can be set to fire only once, or to repeat at a certain interval.
Public Functions
- TimerClass(Acroname::BrainStem::TimerClass &timer)¶
Constructor.
- ~TimerClass()¶
Destructor.
- !TimerClass ()
Finalizer.
- aErr getExpiration(unsigned int %usecDuration)¶
Get the currently set expiration time in microseconds. This is not a “live” timer. That is, it shows the expiration time originally set with setExpiration; it does not “tick down” to show the time remaining before expiration.
- Parameters:
usecDuration – The timer expiration duration in microseconds.
- Returns:
Returns common entity return values
- aErr setExpiration(const int usecDuration)¶
Set the expiration time for the timer entity. When the timer expires, it will fire the associated timer[index]() reflex.
- Parameters:
usecDuration – The duration before timer expiration in microseconds.
- Returns:
Returns common entity return values