Timer  2.1
 All Classes Files Functions Variables Friends
C:/git/test-workspaces/TimerTest/lib/plat/timer/Timer/Timer.h File Reference

Classes

class  TimerAdapter
 
class  Timer
 

Functions

void scheduleTimers ()
 
void yield ()
 
void delayAndSchedule (unsigned int delayMillis)
 

Function Documentation

void delayAndSchedule ( unsigned int  delayMillis)

Delay the caller by the mentioned time while all timers are kept being scheduled in the meanwhile.

Parameters
delayMillisTime to wait in [ms]

This function is kept for backward compatibility, you can use the arduino delay() function instead.

void scheduleTimers ( )

Schedule all timers, check their expiration states.

See Also
TimerContext::handleTick()
void yield ( )

Schedule all timers, check their expiration states.

See Also
scheduleTimers()

The yield() function prototype is declared in arduino.h, and an empty weak implementation is defined in arduino/core/hooks.c. The linker will override the weak by this implementation.

Call this function from large loops in order to keep the timers keep being scheduled all the time. The arduino sleep() function calls this as well.