Antiprism 0.23
|
A subsecond timer. More...
#include <timing.h>
Public Member Functions | |
timer () | |
Constructor. | |
void | set_timer (time_val interval) |
Set the timer. | |
void | set_timer (double interval) |
Set the timer. | |
void | inc_timer (double inc) |
Increment the timer. | |
bool | finished () |
Check whether the timer has finished. | |
void | sleep_until_finished () |
Sleep until finished. |
A subsecond timer.
bool timer::finished | ( | ) | [inline] |
Check whether the timer has finished.
true
if the timer has finished, otherwise false
. void timer::inc_timer | ( | double | inc | ) | [inline] |
Increment the timer.
inc | length of time in microseconds that the timer should be extended. |
void timer::set_timer | ( | double | interval | ) | [inline] |
Set the timer.
interval | length of time in microseconds that the timer should run. |
void timer::set_timer | ( | time_val | interval | ) | [inline] |
Set the timer.
interval | length of time the timer should run. |
void timer::sleep_until_finished | ( | ) | [inline] |
Sleep until finished.
Pause program execution for the amount of time remaining on the timer.