NetBurner 3.5.6
PDF Version
High Resolution Delay Timer

Classes

class  DelayObject
 Microsecond Delay Class. More...
 

Detailed Description

#include< HiResDelay.h>


The OSTimeDly() system function has a 20ms tick count, but if you need more precision timing The High Resolution Delay timer provides delays in microseconds.

When a DelayObject is created, it allocates an available hardware system timer. Once the delay time has expired, and when the object goes out of scope, the hardware timer is freed.

Example Usage:

static DelayObject myHiResDelay; // Create the object
myHiDrsDelay.DelayUsec(100); // Delay 100 us
myHiDrsDelay.DelayUsec(200); // Delay 200 us
myHiDrsDelay.DelayUsec(300); // Delay 300 us
Microsecond Delay Class.
Definition HiResDelay.h:60
void DelayUsec(uint32_t usec)
Microsecond Delay Timer.
See also
Interval Timer
Stopwatch Timer
OSTimeDly()