quickprof::Clock Class Reference

A cross-platform clock class inspired by the Timer classes in Ogre (http://www.ogre3d.org). More...

#include <quickprof.h>

List of all members.

Public Member Functions

 Clock ()
 ~Clock ()
void reset ()
 Resets the initial reference time.
unsigned long long int getTimeMicroseconds ()
 Returns the time in us since the last call to reset or since the Clock was created.


Detailed Description

A cross-platform clock class inspired by the Timer classes in Ogre (http://www.ogre3d.org).

Definition at line 86 of file quickprof.h.


Constructor & Destructor Documentation

quickprof::Clock::Clock (  )  [inline]

Definition at line 89 of file quickprof.h.

quickprof::Clock::~Clock (  )  [inline]

Definition at line 97 of file quickprof.h.


Member Function Documentation

void quickprof::Clock::reset (  )  [inline]

Resets the initial reference time.

Definition at line 104 of file quickprof.h.

unsigned long long int quickprof::Clock::getTimeMicroseconds (  )  [inline]

Returns the time in us since the last call to reset or since the Clock was created.

Returns:
The requested time in microseconds. Assuming 64-bit integers are available, the return value is valid for 2^63 clock cycles (over 104 years w/ clock frequency 2.8 GHz).

Definition at line 123 of file quickprof.h.


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

Generated on Wed Mar 26 10:40:47 2008 for QuickProf by  doxygen 1.5.5