StopWatchPack::stopwatch Class Reference

Simple stopwatch object. More...

#include <StopWatchPack_stopwatch.hpp>

List of all members.

Public Member Functions

 stopwatch ()
 Initializes of not running.
bool is_running () const
 Returns true if this is currently timming.
void start ()
 Starts timing if it has already not been started.
double stop ()
 Stops timing and returns the time (sec.) since start() was called.
void reset ()
 Stops and resets the clock if it is running.
double read ()
 Reads the elapsed time (sec.) and leaves the clock running.


Detailed Description

Simple stopwatch object.

Definition at line 46 of file StopWatchPack_stopwatch.hpp.


Constructor & Destructor Documentation

StopWatchPack::stopwatch::stopwatch (  )  [inline]

Initializes of not running.

Definition at line 50 of file StopWatchPack_stopwatch.hpp.


Member Function Documentation

bool StopWatchPack::stopwatch::is_running (  )  const [inline]

Returns true if this is currently timming.

Definition at line 54 of file StopWatchPack_stopwatch.hpp.

void StopWatchPack::stopwatch::start (  )  [inline]

Starts timing if it has already not been started.

Definition at line 59 of file StopWatchPack_stopwatch.hpp.

double StopWatchPack::stopwatch::stop (  )  [inline]

Stops timing and returns the time (sec.) since start() was called.

Definition at line 67 of file StopWatchPack_stopwatch.hpp.

void StopWatchPack::stopwatch::reset (  )  [inline]

Stops and resets the clock if it is running.

Definition at line 77 of file StopWatchPack_stopwatch.hpp.

double StopWatchPack::stopwatch::read (  )  [inline]

Reads the elapsed time (sec.) and leaves the clock running.

Definition at line 84 of file StopWatchPack_stopwatch.hpp.


The documentation for this class was generated from the following file:
Generated on Wed May 12 21:50:27 2010 for MoochoPack: Miscellaneous Utilities for MOOCHO by  doxygen 1.4.7