API for accurate timestamps, sleeping, and time based callbacks. More...

Modules

 timestamp
 Timestamp functions relating to points in time (including the current time)
 
 sleep
 Sleep functions for delaying execution in a lower power state.
 
 alarm
 Alarm functions for scheduling future execution.
 
 repeating_timer
 Repeating Timer functions for simple scheduling of repeated execution.
 

Detailed Description

API for accurate timestamps, sleeping, and time based callbacks.

Note
The functions defined here provide a much more powerful and user friendly wrapping around the low level hardware timer functionality. For these functions (and any other SDK functionality e.g. timeouts, that relies on them) to work correctly, the hardware timer should not be modified. i.e. it is expected to be monotonically increasing once per microsecond. Fortunately there is no need to modify the hardware timer as any functionality you can think of that isn't already covered here can easily be modelled by adding or subtracting a constant value from the unmodified hardware timer.
See also
hardware_timer