Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more::diag::stopwatch Class Reference

Class for timing program execution. More...

#include <stopwatch.h>

List of all members.

Public Methods


Detailed Description

Class for timing program execution.


Constructor & Destructor Documentation

more::diag::stopwatch::stopwatch   [inline]
 

Construct a stopwatch initialized to t=0.

more::diag::stopwatch::stopwatch double    t [inline]
 

Construct a stopwatch initialized to the time t seconds.


Member Function Documentation

void more::diag::stopwatch::flush   const [inline]
 

more::diag::stopwatch::operator double   const [inline]
 

Conversion to double gives the current time in second.

stopwatch& more::diag::stopwatch::operator= double    t [inline]
 

Assign a time of t seconds to the stopwatch.

void more::diag::stopwatch::reset   [inline]
 

Reset the stopwatch.

If the stopwatch is running, it will continue running from t=0.

void more::diag::stopwatch::restart   [inline]
 

Start a stopwatch, which is not running, from t=0.

bool more::diag::stopwatch::running   const [inline]
 

True iff the stopwatch is running.

void more::diag::stopwatch::start   [inline]
 

Start a stopwatch which is not already running.

The stopwatch will continue from its current value.

void more::diag::stopwatch::stop   [inline]
 

Stop a running stopwatch.


The documentation for this class was generated from the following file:
Generated on Sat Sep 7 19:12:04 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.