dlr::utilities::Timer Class Reference

This class represents a timer, useful for measuring time interals. More...

#include <timeUtilities.h>

List of all members.

Public Member Functions

 Timer ()
 This constructor initializes the timer and starts timing.
 ~Timer ()
 Destructor.
double getElapsedTime ()
 The function calculates and returns the time since the last reset (or since the timer was created).
double reset ()
 This function behaves just like getElapsedTime(), but also resets the timer to zero.


Detailed Description

This class represents a timer, useful for measuring time interals.

Definition at line 45 of file timeUtilities.h.


Constructor & Destructor Documentation

dlr::utilities::Timer::Timer (  )  [inline]

This constructor initializes the timer and starts timing.

Parameters:
timeUnit This argument

Definition at line 53 of file timeUtilities.h.

References reset().

dlr::utilities::Timer::~Timer (  )  [inline]

Destructor.

Definition at line 60 of file timeUtilities.h.


Member Function Documentation

double dlr::utilities::Timer::getElapsedTime (  )  [inline]

The function calculates and returns the time since the last reset (or since the timer was created).

Returns:
The return value is the elapsed time in seconds.

Definition at line 70 of file timeUtilities.h.

double dlr::utilities::Timer::reset (  )  [inline]

This function behaves just like getElapsedTime(), but also resets the timer to zero.

Returns:
The return value is the elapsed time in seconds.

Definition at line 80 of file timeUtilities.h.

Referenced by Timer().


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

Generated on Wed Nov 25 11:07:10 2009 for dlrUtilities Utility Library by  doxygen 1.5.8