Opm::time::StopWatch Class Reference

#include <StopWatch.hpp>

Public Member Functions

 StopWatch ()
 
void start ()
 
void stop ()
 
double secsSinceLast ()
 
double secsSinceStart ()
 

Constructor & Destructor Documentation

◆ StopWatch()

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

◆ secsSinceLast()

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

◆ secsSinceStart()

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

◆ start()

void Opm::time::StopWatch::start ( )

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

◆ stop()

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: