56 if (m_counter >= m_interval)
bool isRunning() const
Check if the timer is running.
SoftwareTimer(uint32_t interval=0, bool start=false)
Constructor using no timebase.
uint32_t interval() const
Get the timer interval.
uint32_t counterValue() const
Get the current counter value.
void setInterval(uint32_t interval)
Set the timer interval.
void tick() override
Counting the time. Must be called cyclically by a timer interrupt or similar.
void start() override
Start time counting.
A TimeBase is the bridge between e.g. a hardware timer (interrupt service routine) and TickReceiver o...
virtual void add(TickReceiver &tickReceiver)=0
Adds e.g. a timer to this timebase.