Dip  0.92.4
Public Member Functions | Private Attributes | List of all members
UtilTimer Class Reference

#include <UtilTimer.h>

Public Member Functions

 UtilTimer ()
 
 ~UtilTimer ()
 
void reset ()
 Reset. More...
 
void start ()
 Start to count times. More...
 
void stop ()
 Stop timer and computing times. More...
 
double getCpuTime ()
 Get cpu time. More...
 
double getRealTime ()
 Get wallClock time. More...
 
bool isPast (double limit)
 Return whether the given amount of real time has elapsed since the timer was started. More...
 

Private Attributes

double startCpu_
 Start, end markers. More...
 
double finishCpu_
 
double startReal_
 
double finishReal_
 
double cpu_
 Cpu time. More...
 
double real_
 Real clock time. More...
 

Detailed Description

Definition at line 23 of file UtilTimer.h.

Constructor & Destructor Documentation

UtilTimer::UtilTimer ( )
inline

Definition at line 38 of file UtilTimer.h.

References reset().

UtilTimer::~UtilTimer ( )
inline

Definition at line 41 of file UtilTimer.h.

Member Function Documentation

void UtilTimer::reset ( )
inline

Reset.

Definition at line 44 of file UtilTimer.h.

References cpu_, finishCpu_, finishReal_, real_, and start().

Referenced by UtilPrintFuncBegin(), and UtilTimer().

void UtilTimer::start ( )
inline

Start to count times.

Definition at line 53 of file UtilTimer.h.

References CoinCpuTime(), CoinGetTimeOfDay(), startCpu_, and startReal_.

Referenced by reset().

void UtilTimer::stop ( )
inline

Stop timer and computing times.

Definition at line 59 of file UtilTimer.h.

References CoinCpuTime(), CoinGetTimeOfDay(), cpu_, finishCpu_, finishReal_, real_, startCpu_, and startReal_.

double UtilTimer::getCpuTime ( )
inline

Get cpu time.

Definition at line 67 of file UtilTimer.h.

References CoinCpuTime(), cpu_, finishCpu_, and startCpu_.

Referenced by UtilPrintFuncBegin(), and UtilPrintFuncEnd().

double UtilTimer::getRealTime ( )
inline
bool UtilTimer::isPast ( double  limit)
inline

Return whether the given amount of real time has elapsed since the timer was started.

Definition at line 82 of file UtilTimer.h.

References getRealTime().

Member Data Documentation

double UtilTimer::startCpu_
private

Start, end markers.

Definition at line 26 of file UtilTimer.h.

Referenced by getCpuTime(), start(), and stop().

double UtilTimer::finishCpu_
private

Definition at line 27 of file UtilTimer.h.

Referenced by getCpuTime(), reset(), and stop().

double UtilTimer::startReal_
private

Definition at line 28 of file UtilTimer.h.

Referenced by getRealTime(), start(), and stop().

double UtilTimer::finishReal_
private

Definition at line 29 of file UtilTimer.h.

Referenced by getRealTime(), reset(), and stop().

double UtilTimer::cpu_
private

Cpu time.

Definition at line 32 of file UtilTimer.h.

Referenced by getCpuTime(), reset(), and stop().

double UtilTimer::real_
private

Real clock time.

Definition at line 35 of file UtilTimer.h.

Referenced by getRealTime(), reset(), and stop().


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