Alps  2.0.2
Public Member Functions | Public Attributes | List of all members
AlpsTimer Class Reference

#include <AlpsTime.h>

Public Member Functions

 AlpsTimer ()
 
 AlpsTimer (double lt)
 
 ~AlpsTimer ()
 
void reset ()
 Reset. More...
 
void start ()
 Start to count times. More...
 
void stop ()
 Stop timer and computing times. More...
 
void setLimit (double lm)
 
double getLimit () const
 
double getCpuTime ()
 Get cpu timee. More...
 
double getWallClockTime ()
 Get wallclock timee. More...
 
double getTime ()
 Get time depends on clock type. More...
 
int getClockType ()
 Get/Set clock type. More...
 
void setClockType (int ct)
 
bool reachCpuLimit ()
 Check if cpu time reach limit. More...
 
bool reachWallLimit ()
 Check if wallclock time reach limit. More...
 

Public Attributes

int clockType_
 
double limit_
 Time limit. More...
 
double startCpu_
 
double startWall_
 
double finishCpu_
 
double finishWall_
 
double cpu_
 Cpu time. More...
 
double wall_
 Wall clock time. More...
 

Detailed Description

Definition at line 64 of file AlpsTime.h.

Constructor & Destructor Documentation

◆ AlpsTimer() [1/2]

AlpsTimer::AlpsTimer ( )
inline

Definition at line 85 of file AlpsTime.h.

◆ AlpsTimer() [2/2]

AlpsTimer::AlpsTimer ( double  lt)
inline

Definition at line 86 of file AlpsTime.h.

◆ ~AlpsTimer()

AlpsTimer::~AlpsTimer ( )
inline

Definition at line 87 of file AlpsTime.h.

Member Function Documentation

◆ reset()

void AlpsTimer::reset ( )
inline

Reset.

Definition at line 90 of file AlpsTime.h.

◆ start()

void AlpsTimer::start ( )
inline

Start to count times.

Definition at line 100 of file AlpsTime.h.

◆ stop()

void AlpsTimer::stop ( )
inline

Stop timer and computing times.

Definition at line 106 of file AlpsTime.h.

◆ setLimit()

void AlpsTimer::setLimit ( double  lm)
inline

Definition at line 114 of file AlpsTime.h.

◆ getLimit()

double AlpsTimer::getLimit ( ) const
inline

Definition at line 115 of file AlpsTime.h.

◆ getCpuTime()

double AlpsTimer::getCpuTime ( )
inline

Get cpu timee.

Definition at line 119 of file AlpsTime.h.

◆ getWallClockTime()

double AlpsTimer::getWallClockTime ( )
inline

Get wallclock timee.

Definition at line 126 of file AlpsTime.h.

◆ getTime()

double AlpsTimer::getTime ( )
inline

Get time depends on clock type.

Definition at line 133 of file AlpsTime.h.

◆ getClockType()

int AlpsTimer::getClockType ( )
inline

Get/Set clock type.

Definition at line 149 of file AlpsTime.h.

◆ setClockType()

void AlpsTimer::setClockType ( int  ct)
inline

Definition at line 150 of file AlpsTime.h.

◆ reachCpuLimit()

bool AlpsTimer::reachCpuLimit ( )
inline

Check if cpu time reach limit.

Definition at line 153 of file AlpsTime.h.

◆ reachWallLimit()

bool AlpsTimer::reachWallLimit ( )
inline

Check if wallclock time reach limit.

Definition at line 165 of file AlpsTime.h.

Member Data Documentation

◆ clockType_

int AlpsTimer::clockType_

Definition at line 68 of file AlpsTime.h.

◆ limit_

double AlpsTimer::limit_

Time limit.

Definition at line 71 of file AlpsTime.h.

◆ startCpu_

double AlpsTimer::startCpu_

Definition at line 73 of file AlpsTime.h.

◆ startWall_

double AlpsTimer::startWall_

Definition at line 74 of file AlpsTime.h.

◆ finishCpu_

double AlpsTimer::finishCpu_

Definition at line 75 of file AlpsTime.h.

◆ finishWall_

double AlpsTimer::finishWall_

Definition at line 76 of file AlpsTime.h.

◆ cpu_

double AlpsTimer::cpu_

Cpu time.

Definition at line 79 of file AlpsTime.h.

◆ wall_

double AlpsTimer::wall_

Wall clock time.

Definition at line 82 of file AlpsTime.h.


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