#include <StopWatch.h>
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 |
|
Definition at line 120 of file StopWatch.h. |
|
Definition at line 175 of file StopWatch.h. References mTimeStarted. Referenced by pulse(). |
|
Definition at line 186 of file StopWatch.h. References mCount, mFpsAverage, mFpsInstant, mRefreshRate, mTimeAverage, mTimeInstant, mTimeStarted, and mTimeStopped. Referenced by pulse(). |
|
Definition at line 216 of file StopWatch.h. |
|
Definition at line 224 of file StopWatch.h. References mCount, mFpsAverage, mFpsInstant, mTimeInstant, mTimeStarted, and mTimeStopped. |
|
Definition at line 48 of file StopWatch.h. References mRefreshRate. |
|
Definition at line 57 of file StopWatch.h. References mTimeAverage. |
|
Definition at line 63 of file StopWatch.h. References mTimeInstant. |
|
Definition at line 67 of file StopWatch.h. References mTimeStarted. |
|
Definition at line 71 of file StopWatch.h. References mTimeStopped. |
|
Definition at line 78 of file StopWatch.h. References mCount. |
|
Definition at line 81 of file StopWatch.h. References mFpsAverage. |
|
Definition at line 84 of file StopWatch.h. References mFpsInstant. |
|
Definition at line 139 of file StopWatch.h. |
|
Definition at line 165 of file StopWatch.h. |
|
Definition at line 95 of file StopWatch.h. |
|
Definition at line 96 of file StopWatch.h. |
|
Definition at line 97 of file StopWatch.h. Referenced by stop(), and timeAverage(). |
|
Definition at line 98 of file StopWatch.h. Referenced by reset(), stop(), and timeInstant(). |
|
Definition at line 102 of file StopWatch.h. Referenced by setRefreshRate(), and stop(). |
|
Definition at line 106 of file StopWatch.h. |
|
Definition at line 107 of file StopWatch.h. Referenced by fpsAverage(), reset(), and stop(). |
|
Definition at line 108 of file StopWatch.h. Referenced by fpsInstant(), reset(), and stop(). |