Timer Class Reference

CPU timer. More...

#include <lab4_vit.H>

List of all members.

Public Member Functions

 Timer (bool doStart=false)
 Ctor; if doStart is true, starts timer.
bool is_on () const
 Returns whether timer is currently on.
void start ()
 Starts timer.
double stop ()
 Stops timer.
double get_cum_secs () const
 Returns cumulative seconds timer has been on so far.


Detailed Description

CPU timer.

Constructor & Destructor Documentation

Timer::Timer ( bool  doStart = false  )  [inline]

Ctor; if doStart is true, starts timer.


Member Function Documentation

bool Timer::is_on (  )  const [inline]

Returns whether timer is currently on.

void Timer::start (  ) 

Starts timer.

double Timer::stop (  ) 

Stops timer.

Returns cumulative time on so far.

double Timer::get_cum_secs (  )  const [inline]

Returns cumulative seconds timer has been on so far.

If timer currently on, doesn't include time since last time was started.


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

Generated on Thu Nov 5 09:26:37 2009 for asr_lib by  doxygen 1.5.5