Timer Class Reference

#include <Timer.h>


Detailed Description

A simple timer.

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.

Constructor & Destructor Documentation

Timer::Timer (  )  [inline]

The constructor. Initialised the ticks with 0.

Definition at line 29 of file Timer.h.

References ticks.

Timer::~Timer (  )  [inline]

Definition at line 33 of file Timer.h.


Member Function Documentation

void Timer::SetTime ( unsigned int  t  )  [inline]

Sets the number of ticks.

Parameters:
t The new number of ticks.

Definition at line 40 of file Timer.h.

References ticks.

unsigned int Timer::GetTime (  )  [inline]

returns the number of ticks.

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]

Resets the number of ticks to zero.

Definition at line 65 of file Timer.h.

References ticks.


Field Documentation

unsigned int Timer::ticks [private]

The current number of ticks.

unsigned int ticks

Definition at line 21 of file Timer.h.

Referenced by GetTime(), Restart(), SetTime(), Tick(), and Timer().


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 21:48:59 2008 for RayTracer by  doxygen 1.5.4