All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Opm::time::StopWatch Class Reference

Public Member Functions

 StopWatch ()
 Default constructor. More...
 
void start ()
 Starts the StopWatch. More...
 
void stop ()
 Stops the StopWatch. More...
 
double secsSinceLast ()
 
double secsSinceStart ()
 

Constructor & Destructor Documentation

Opm::time::StopWatch::StopWatch ( )

Default constructor.

Before the StopWatch is start()-ed, it is an error to call anything other than start().

Member Function Documentation

double Opm::time::StopWatch::secsSinceLast ( )
Returns
the number of running seconds that have passed since last call to start(), secsSinceLast() or secsSinceStart()
double Opm::time::StopWatch::secsSinceStart ( )
Returns
the number of running seconds that have passed since last call to start().
void Opm::time::StopWatch::start ( )

Starts the StopWatch.

It is always legal to call start(), even if not stop()-ped.

void Opm::time::StopWatch::stop ( )

Stops the StopWatch.

The watch no longer runs, until restarted by a call to start().


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