#include <Timer.h>
Definition at line 14 of file Timer.h.
Public Member Functions | |
Timer () | |
The constructor. Initialised the ticks with 0. | |
~Timer () | |
void | SetTime (unsigned int t) |
Sets the number of ticks. | |
unsigned int | GetTime () |
returns the number of ticks. | |
void | Tick () |
Increments the number of ticks by one. | |
void | Restart () |
Resets the number of ticks to zero. | |
Private Attributes | |
unsigned int | ticks |
The current number of ticks. |
Timer::Timer | ( | ) | [inline] |
void Timer::SetTime | ( | unsigned int | t | ) | [inline] |
unsigned int Timer::GetTime | ( | ) | [inline] |
returns the number of ticks.
Definition at line 49 of file Timer.h.
References ticks.
Referenced by RenderDepthOfFieldFrame(), RenderFrame(), RenderLinearFramePath(), RenderStereoFrame(), RenderSupersampledFrame(), PlasmaShader::Shade(), MixShader::Shade(), and CloudShader::Shade().
Timer::Tick | ( | ) | [inline] |
Increments the number of ticks by one.
Definition at line 57 of file Timer.h.
References ticks.
Referenced by main(), and RenderLinearFramePath().
Timer::Restart | ( | ) | [inline] |
unsigned int Timer::ticks [private] |