Timer Class Reference

#include <timer.h>

List of all members.

Public Member Functions

 Timer ()
 ~Timer ()
void Start ()
void Stop ()
void Reset ()
double Time ()

Private Member Functions

double GetTime ()

Private Attributes

double time0
double elapsed
bool running
struct timeval timeofday


Detailed Description

Definition at line 37 of file timer.h.


Constructor & Destructor Documentation

Timer::Timer (  ) 

Definition at line 26 of file timer.cpp.

References elapsed, running, and time0.

Timer::~Timer (  ) 

Definition at line 98 of file timer.cpp.


Member Function Documentation

double Timer::GetTime (  )  [private]

Definition at line 73 of file timer.cpp.

References timeofday.

Referenced by Start(), and Stop().

void Timer::Reset (  ) 

Definition at line 120 of file timer.cpp.

References elapsed, and running.

Referenced by lux::Scene::Scene().

void Timer::Start (  ) 

Definition at line 105 of file timer.cpp.

References GetTime(), running, and time0.

Referenced by ProgressReporter::ProgressReporter(), lux::Scene::Render(), lux::Scene::Start(), and Time().

void Timer::Stop (  ) 

Definition at line 112 of file timer.cpp.

References elapsed, GetTime(), running, and time0.

Referenced by lux::Scene::Pause(), and Time().

double Timer::Time (  ) 


Member Data Documentation

double Timer::elapsed [private]

Definition at line 50 of file timer.h.

Referenced by Reset(), Stop(), Time(), and Timer().

bool Timer::running [private]

Definition at line 51 of file timer.h.

Referenced by Reset(), Start(), Stop(), Time(), and Timer().

double Timer::time0 [private]

Definition at line 50 of file timer.h.

Referenced by Start(), Stop(), and Timer().

struct timeval Timer::timeofday [read, private]

Definition at line 73 of file timer.h.

Referenced by GetTime().


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

Generated on Mon May 18 07:16:14 2009 for lux by  doxygen 1.5.8