VEX V5 C++ API
|
Use the timer class to create timers for your program. More...
Public Member Functions | |
timer () | |
~timer () | |
void | operator= (uint32_t value) |
operator uint32_t () const | |
uint32_t | time () const |
Gets the current value of the timer in mS. More... | |
double | time (timeUnits units) const |
Gets the current value of the timer in specified units. More... | |
void | clear () |
Sets the current value of the timer to 0. More... | |
Static Public Member Functions | |
static uint32_t | system () |
Gets the current value of the system timer in mS. More... | |
static uint64_t | systemHighResolution () |
Gets the current value of the high-resolution timer (in microseconds). More... | |
Use the timer class to create timers for your program.
vex::timer::timer | ( | ) |
vex::timer::~timer | ( | ) |
void vex::timer::operator= | ( | uint32_t | value | ) |
vex::timer::operator uint32_t | ( | ) | const |
uint32_t vex::timer::time | ( | ) | const |
Gets the current value of the timer in mS.
double vex::timer::time | ( | timeUnits | units | ) | const |
Gets the current value of the timer in specified units.
units | The measurement unit for time. |
void vex::timer::clear | ( | ) |
Sets the current value of the timer to 0.
|
static |
Gets the current value of the system timer in mS.
|
static |
Gets the current value of the high-resolution timer (in microseconds).