Geom Software - C++ Programming and Geometry Libraries
WOF Documentation pages v1.16
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...
 
double getSecondsSinceLastReport ()
 Get elapsed time since last report. 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.

◆ getSecondsSinceLastReport()

double GEOM_WOF::TimerC::getSecondsSinceLastReport ( )
inline

Returns the elapsed seconds since last report (if none, since construction)

◆ report()

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

Prints the time since last report (or, if none, since construction). 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: