Geom Software - C++ Programming and Geometry Libraries
WOF Documentation pages v1.13
GEOM_WOF::TimerC Class Reference

Timer class. More...

#include <TimerC.h>

Public Member Functions

 TimerC ()
 Constructor. More...
 
double stop ()
 Timer stop. More...
 
double get () const
 Get the elapsed time. More...
 
void report (const std::string &s)
 Report. More...
 

Detailed Description

TimerC measures the time consumption

Constructor & Destructor Documentation

◆ TimerC()

GEOM_WOF::TimerC::TimerC ( )
inline

At construction TimerC stores the current time

Member Function Documentation

◆ get()

double GEOM_WOF::TimerC::get ( ) const
inline
Returns
the elapsed time in seconds between TimerC construction and the first call to TimerC::stop(). When the timer has not been stopped then the time since construction is returned.

◆ report()

void GEOM_WOF::TimerC::report ( const std::string &  s)
inline

Prints the time since construction or since last report. This command is intended to measure successive intervals

◆ stop()

double GEOM_WOF::TimerC::stop ( )
inline
Returns
the elapsed time since TimerC construction in seconds

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