inVRsUtilities::Timer Class Reference
#include <Timer.h>
Public Member Functions | |
| Timer (bool start=false) | |
| ~Timer () | |
| void | start () |
| void | stop () |
| void | reset () |
| void | setSpeed (double speed) |
| double | getSystemTime () |
| double | getTime () |
| double | getTimeInMilliseconds () |
| double | getSpeed () |
| bool | isRunning () |
Protected Attributes | |
| double | startTime |
| Time the timer was started. | |
| double | timerValue |
| Value of the timer, always updated when getTime is called. | |
| double | previousTime |
| Value of the system time at last request. | |
| double | speedFactor |
| factor of timer speed | |
| bool | running |
| defines if the timer is running | |
Constructor & Destructor Documentation
| inVRsUtilities::Timer::Timer | ( | bool | start = false |
) |
Constructor
| inVRsUtilities::Timer::~Timer | ( | ) |
Desctructor
Member Function Documentation
| double inVRsUtilities::Timer::getSpeed | ( | ) |
| double inVRsUtilities::Timer::getSystemTime | ( | ) |
| double inVRsUtilities::Timer::getTime | ( | ) |
| double inVRsUtilities::Timer::getTimeInMilliseconds | ( | ) |
| bool inVRsUtilities::Timer::isRunning | ( | ) |
| void inVRsUtilities::Timer::reset | ( | ) |
| void inVRsUtilities::Timer::setSpeed | ( | double | speed | ) |
| void inVRsUtilities::Timer::start | ( | ) |
| void inVRsUtilities::Timer::stop | ( | ) |
Member Data Documentation
double inVRsUtilities::Timer::previousTime [protected] |
Value of the system time at last request.
bool inVRsUtilities::Timer::running [protected] |
defines if the timer is running
double inVRsUtilities::Timer::speedFactor [protected] |
factor of timer speed
double inVRsUtilities::Timer::startTime [protected] |
Time the timer was started.
double inVRsUtilities::Timer::timerValue [protected] |
Value of the timer, always updated when getTime is called.
The documentation for this class was generated from the following files:
Generated on Wed Oct 20 16:12:03 2010 for inVRs by
1.5.8