VR-Vantage 3.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
ssTimer Class Reference

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

Detailed Description

Copyright JRM Enterprises, Inc.

  1. All rights reserved.

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.

Constructor & Destructor Documentation

ssTimer::ssTimer ( )
inline

Default constructor - instantiate an instance of this timer class and start counting seconds.

References LARGE_INTEGER::QuadPart, and QueryPerformanceFrequency().

Member Function Documentation

void ssTimer::reset ( void  )
inline

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().

double ssTimer::getTime ( )
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().

Member Data Documentation

struct timeval ssTimer::m_startTime
private

The documentation for this class was generated from the following file:


Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)