Opm::time::StopWatch Class Reference

#include <StopWatch.hpp>

Public Member Functions

 StopWatch ()
 
void start ()
 
void stop ()
 
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 file: