CpuTimer Class Reference

Utility class for monitoring user/system cpu usage plus wall-clock time. More...

#include <Util/CpuTimer.H>

List of all members.

Public Member Functions

 CpuTimer ()
 Constructor; immediately start timing.
void reset ()
 Reset the timer and immediately start timing again.
void mark ()
 Mark the current time for access via user_secs()/sys_secs()/real_secs().
double user_secs () const
 Get the user CPU seconds between reset() and mark().
double sys_secs () const
 Get the system CPU seconds between reset() and mark().
double real_secs () const
 Get the real (wall-clock) CPU seconds between reset() and mark().
void report (const char *where="") const
 Print a report based on the most recent mark().

Detailed Description

Utility class for monitoring user/system cpu usage plus wall-clock time.

Definition at line 47 of file CpuTimer.H.


Constructor & Destructor Documentation

CpuTimer::CpuTimer (  )  [inline]

Constructor; immediately start timing.

Definition at line 80 of file CpuTimer.H.

References reset().


Member Function Documentation

void CpuTimer::mark (  )  [inline]

Mark the current time for access via user_secs()/sys_secs()/real_secs().

Definition at line 92 of file CpuTimer.H.

Referenced by V4d::GHT(), V4d::mergeBias(), and ModelManager::stop1().

double CpuTimer::real_secs (  )  const [inline]

Get the real (wall-clock) CPU seconds between reset() and mark().

Definition at line 112 of file CpuTimer.H.

Referenced by V4d::GHT(), V4d::mergeBias(), and report().

void CpuTimer::report ( const char *  where = ""  )  const [inline]

Print a report based on the most recent mark().

Definition at line 119 of file CpuTimer.H.

References real_secs(), sys_secs(), and user_secs().

Referenced by ModelManager::stop1().

void CpuTimer::reset ( void   )  [inline]

Reset the timer and immediately start timing again.

Definition at line 83 of file CpuTimer.H.

Referenced by CpuTimer(), V4d::GHT(), V4d::mergeBias(), and ModelManager::start2().

double CpuTimer::sys_secs (  )  const [inline]

Get the system CPU seconds between reset() and mark().

Definition at line 105 of file CpuTimer.H.

Referenced by report().

double CpuTimer::user_secs (  )  const [inline]

Get the user CPU seconds between reset() and mark().

Definition at line 98 of file CpuTimer.H.

Referenced by report().


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:43:18 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3