util::cronos Class Reference

Models a time cronometer. More...

#include <util.h>

List of all members.

Public Member Functions

 cronos ()
 Constructor.
double get_elapsed () const
 Get elapsed time (in seconds) between last pair of start(), stop() calls.
void start ()
 Start cronometer.
void stop ()
 Stop cronometer.
virtual ~cronos ()
 Destructor.

Private Attributes

double elapsedTime
 Holds elapsed time.
struct timeval startTimeElapsed
 Holds start time.


Detailed Description

Models a time cronometer.

Constructor & Destructor Documentation

util::cronos::cronos (  )  [inline]

Constructor.

virtual util::cronos::~cronos (  )  [inline, virtual]

Destructor.


Member Function Documentation

double util::cronos::get_elapsed (  )  const [inline]

Get elapsed time (in seconds) between last pair of start(), stop() calls.

void util::cronos::start (  )  [inline]

Start cronometer.

void util::cronos::stop (  )  [inline]

Stop cronometer.


Member Data Documentation

double util::cronos::elapsedTime [private]

Holds elapsed time.

struct timeval util::cronos::startTimeElapsed [read, private]

Holds start time.


The documentation for this class was generated from the following file:
Generated on Sun Nov 23 14:52:47 2008 for Typing linear constraints by  doxygen 1.5.4