Dip 0.95.0
Loading...
Searching...
No Matches
UtilTimer Class Reference

#include <UtilTimer.h>

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.
 

Detailed Description

Definition at line 23 of file UtilTimer.h.

Constructor & Destructor Documentation

◆ UtilTimer()

UtilTimer::UtilTimer ( )
inline

Definition at line 38 of file UtilTimer.h.

◆ ~UtilTimer()

UtilTimer::~UtilTimer ( )
inline

Definition at line 41 of file UtilTimer.h.

Member Function Documentation

◆ reset()

void UtilTimer::reset ( )
inline

Reset.

Definition at line 44 of file UtilTimer.h.

◆ start()

void UtilTimer::start ( )
inline

Start to count times.

Definition at line 53 of file UtilTimer.h.

◆ stop()

void UtilTimer::stop ( )
inline

Stop timer and computing times.

Definition at line 59 of file UtilTimer.h.

◆ getCpuTime()

double UtilTimer::getCpuTime ( )
inline

Get cpu time.

Definition at line 67 of file UtilTimer.h.

◆ getRealTime()

double UtilTimer::getRealTime ( )
inline

Get wallClock time.

Definition at line 74 of file UtilTimer.h.

◆ isPast()

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.


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