Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ani::StopWatch Class Reference

#include <StopWatch.h>

List of all members.

Public Methods

 StopWatch (const int &averageFpsRefreshRate=15)
void start ()
void stop ()
void pulse ()
void reset ()
void setRefreshRate (const int &rate)
const double & timeAverage () const
const double & timeInstant () const
const double & timeStart () const
const double & timeStop () const
const unsigned long & count () const
const double & fpsAverage () const
const double & fpsInstant () const

Static Public Methods

void getTime (double &num)
double getTime ()

Protected Attributes

double mTimeStarted
double mTimeStopped
double mTimeAverage
double mTimeInstant
int mRefreshRate
unsigned long mCount
double mFpsAverage
double mFpsInstant


Constructor & Destructor Documentation

ani::StopWatch::StopWatch const int &    averageFpsRefreshRate = 15 [inline]
 

Definition at line 120 of file StopWatch.h.


Member Function Documentation

void ani::StopWatch::start   [inline]
 

Definition at line 175 of file StopWatch.h.

References mTimeStarted.

Referenced by pulse().

void ani::StopWatch::stop   [inline]
 

Definition at line 186 of file StopWatch.h.

References mCount, mFpsAverage, mFpsInstant, mRefreshRate, mTimeAverage, mTimeInstant, mTimeStarted, and mTimeStopped.

Referenced by pulse().

void ani::StopWatch::pulse   [inline]
 

Definition at line 216 of file StopWatch.h.

References start(), and stop().

void ani::StopWatch::reset   [inline]
 

Definition at line 224 of file StopWatch.h.

References mCount, mFpsAverage, mFpsInstant, mTimeInstant, mTimeStarted, and mTimeStopped.

void ani::StopWatch::setRefreshRate const int &    rate [inline]
 

Definition at line 48 of file StopWatch.h.

References mRefreshRate.

const double& ani::StopWatch::timeAverage   const [inline]
 

Definition at line 57 of file StopWatch.h.

References mTimeAverage.

const double& ani::StopWatch::timeInstant   const [inline]
 

Definition at line 63 of file StopWatch.h.

References mTimeInstant.

const double& ani::StopWatch::timeStart   const [inline]
 

Definition at line 67 of file StopWatch.h.

References mTimeStarted.

const double& ani::StopWatch::timeStop   const [inline]
 

Definition at line 71 of file StopWatch.h.

References mTimeStopped.

const unsigned long& ani::StopWatch::count   const [inline]
 

Definition at line 78 of file StopWatch.h.

References mCount.

const double& ani::StopWatch::fpsAverage   const [inline]
 

Definition at line 81 of file StopWatch.h.

References mFpsAverage.

const double& ani::StopWatch::fpsInstant   const [inline]
 

Definition at line 84 of file StopWatch.h.

References mFpsInstant.

void ani::StopWatch::getTime double &    num [inline, static]
 

Definition at line 139 of file StopWatch.h.

double ani::StopWatch::getTime   [inline, static]
 

Definition at line 165 of file StopWatch.h.


Member Data Documentation

double ani::StopWatch::mTimeStarted [protected]
 

Definition at line 95 of file StopWatch.h.

Referenced by reset(), start(), stop(), and timeStart().

double ani::StopWatch::mTimeStopped [protected]
 

Definition at line 96 of file StopWatch.h.

Referenced by reset(), stop(), and timeStop().

double ani::StopWatch::mTimeAverage [protected]
 

Definition at line 97 of file StopWatch.h.

Referenced by stop(), and timeAverage().

double ani::StopWatch::mTimeInstant [protected]
 

Definition at line 98 of file StopWatch.h.

Referenced by reset(), stop(), and timeInstant().

int ani::StopWatch::mRefreshRate [protected]
 

Definition at line 102 of file StopWatch.h.

Referenced by setRefreshRate(), and stop().

unsigned long ani::StopWatch::mCount [protected]
 

Definition at line 106 of file StopWatch.h.

Referenced by count(), reset(), and stop().

double ani::StopWatch::mFpsAverage [protected]
 

Definition at line 107 of file StopWatch.h.

Referenced by fpsAverage(), reset(), and stop().

double ani::StopWatch::mFpsInstant [protected]
 

Definition at line 108 of file StopWatch.h.

Referenced by fpsInstant(), reset(), and stop().


The documentation for this class was generated from the following file:
Generated on Wed Jun 12 01:54:08 2002 for Animaniac by doxygen1.2.15