![]() |
VR-Vantage 3.1 API Documentation
|
Copyright JRM Enterprises, Inc. More...
Public Member Functions | |
| ssTimer () | |
| Default constructor - instantiate an instance of this timer class and start counting seconds. | |
| void | reset () |
| This will reset the timer back to zero and will start it counting seconds again from this point in time. | |
| double | getTime () |
| Get the amount of time that has passed since this class was instantiated or it's reset() method called, which ever was most recent. | |
Private Attributes | |
| struct timeval | m_startTime |
Copyright JRM Enterprises, Inc.
This code is the intellectual property of JRM Enterprises, Inc. It may not be used or released as source or compiled binary form without the prior written consent of JRM Enterprises, Inc. Simple timing class that can be used to measure how long events takes. This class is simple but uses a very high resolution clock in it computation. It returns time in seconds as a double precision floating point number.
|
inline |
Default constructor - instantiate an instance of this timer class and start counting seconds.
References LARGE_INTEGER::QuadPart, and QueryPerformanceFrequency().
This will reset the timer back to zero and will start it counting seconds again from this point in time.
References LARGE_INTEGER::QuadPart, and QueryPerformanceCounter().
|
inline |
Get the amount of time that has passed since this class was instantiated or it's reset() method called, which ever was most recent.
References LARGE_INTEGER::QuadPart, and QueryPerformanceCounter().
|
private |