UtilTimer Class Reference

#include <UtilTimer.h>

List of all members.

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 24 of file UtilTimer.h.


Constructor & Destructor Documentation

UtilTimer::UtilTimer (  )  [inline]

Definition at line 39 of file UtilTimer.h.

References reset().

UtilTimer::~UtilTimer (  )  [inline]

Definition at line 42 of file UtilTimer.h.


Member Function Documentation

void UtilTimer::reset (  )  [inline]

Reset.

Definition at line 45 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 54 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 60 of file UtilTimer.h.

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

double UtilTimer::getCpuTime (  )  [inline]

Get cpu time.

Definition at line 68 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 83 of file UtilTimer.h.

References getRealTime().


Member Data Documentation

double UtilTimer::startCpu_ [private]

Start, end markers.

Definition at line 27 of file UtilTimer.h.

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

double UtilTimer::finishCpu_ [private]

Definition at line 28 of file UtilTimer.h.

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

double UtilTimer::startReal_ [private]

Definition at line 29 of file UtilTimer.h.

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

double UtilTimer::finishReal_ [private]

Definition at line 30 of file UtilTimer.h.

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

double UtilTimer::cpu_ [private]

Cpu time.

Definition at line 33 of file UtilTimer.h.

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

double UtilTimer::real_ [private]

Real clock time.

Definition at line 36 of file UtilTimer.h.

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


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

Generated on 3 Jun 2015 for Dip-All by  doxygen 1.6.1