$search
driver timer class. More...
#include <dtimer.h>
Public Member Functions | |
virtual void | Cancel (void) |
Cancel timer. | |
virtual bool | Check (void) |
Return true if timer has expired. | |
DriverTimer () | |
Constructor. | |
virtual void | Restart (double duration) |
Restart timer. | |
virtual void | Start (double duration) |
Start timer. | |
virtual | ~DriverTimer () |
Protected Attributes | |
double | time_remaining |
bool | timer_running |
driver timer class.
Definition at line 20 of file dtimer.h.
virtual void DriverTimer::Cancel | ( | void | ) | [inline, virtual] |
virtual bool DriverTimer::Check | ( | void | ) | [inline, virtual] |
Return true if timer has expired.
Called once per cycle while timer is running. Skipped cycles do not contribute to timer expiration. That allows timers to pause while the vehicle is pausing. It should not immediately begin passing after pausing behind a stopped vehicle, for example.
virtual void DriverTimer::Restart | ( | double | duration | ) | [inline, virtual] |
virtual void DriverTimer::Start | ( | double | duration | ) | [inline, virtual] |
double DriverTimer::time_remaining [protected] |
bool DriverTimer::timer_running [protected] |