#include <vuHWTimer.h>
Collaboration diagram for vuHWTimer:
Public Member Functions | |
vuHWTimer () | |
The default constructor. | |
vuHWTimer (const vuHWTimer &t) | |
The copy constructor. | |
~vuHWTimer () | |
The destructor. | |
vuHWTimer & | operator= (const vuHWTimer &rhs) |
The assignment operator. | |
bool | isSupported (void) const |
Determines whether the system offers a hardware clock. | |
float | getElapsedTimeFloat (void) |
Gets the elapsed time as a float. | |
double | getElapsedTimeDouble (void) |
Gets the elapsed time as a double. | |
void | sleepFloat (float s) |
Halts the program for s seconds. | |
void | sleepDouble (double s) |
Halts the program for s seconds. | |
Private Attributes | |
timeval | m_LastCount |
The last time the time was checked.... | |
bool | m_IsSupported |
true iff a hardware clock is supported |
Author: Steve Kilthau Date: January 4, 2001
Definition at line 19 of file vuHWTimer.h.
|
The default constructor. If the system offers a hardware clock, the default constructor sets up the appropriate values. Definition at line 119 of file vuHWTimer.cpp. References m_IsSupported. |
|
The copy constructor.
Definition at line 126 of file vuHWTimer.cpp. References m_IsSupported, and m_LastCount. |
|
The destructor.
Definition at line 133 of file vuHWTimer.cpp. |
|
Gets the elapsed time as a double. The elapsed time is the time since the last call to GetElapsedTimeDouble/GetElapsedTimeFloat, or since the return from the last call to SleepFloat/SleepDouble. Definition at line 166 of file vuHWTimer.cpp. References m_LastCount, and TIMEVALDIFFDOUBLE. |
|
Gets the elapsed time as a float. The elapsed time is the time since the last call to GetElapsedTimeDouble/GetElapsedTimeFloat, or since the return from the last call to SleepFloat/SleepDouble. Definition at line 153 of file vuHWTimer.cpp. References m_LastCount, and TIMEVALDIFFFLOAT. Referenced by vuKeyFramerDialog::OnTakeShot(), vuKeyFramerDialog::PlayInTime(), vuKeyFramerDialog::RecordFunc(), and vuKFThread::run(). |
|
Determines whether the system offers a hardware clock.
Definition at line 148 of file vuHWTimer.cpp. |
|
The assignment operator.
Definition at line 137 of file vuHWTimer.cpp. References m_IsSupported, and m_LastCount. |
|
Halts the program for s seconds. Causes the program to halt until s seconds have elapsed since the last call to GetElapsedTimeFloat, GetElapsedTimeDouble, SleepFloat, or SleepDouble. Before the function returns, the timer is updated. Definition at line 198 of file vuHWTimer.cpp. References m_LastCount, and TIMEVALDIFFDOUBLE. |
|
Halts the program for s seconds. Causes the program to halt until s seconds have elapsed since the last call to GetElapsedTimeFloat, GetElapsedTimeDouble, SleepFloat, or SleepDouble. Before the function returns, the timer is updated. Definition at line 179 of file vuHWTimer.cpp. References m_LastCount, and TIMEVALDIFFFLOAT. |
|
true iff a hardware clock is supported
Definition at line 81 of file vuHWTimer.h. Referenced by operator=(), and vuHWTimer(). |
|
The last time the time was checked....
Definition at line 79 of file vuHWTimer.h. Referenced by getElapsedTimeDouble(), getElapsedTimeFloat(), operator=(), sleepDouble(), sleepFloat(), and vuHWTimer(). |