Class ParaSysTimer. More...
#include <paraSysTimer.h>
Public Member Functions | |
ParaSysTimer () | |
default constructor More... | |
~ParaSysTimer () | |
destructor More... | |
void | init (ParaComm *paraComm) |
initialize timer More... | |
double | getElapsedTime () |
get elapsed time More... | |
void | start (void) |
start timer More... | |
void | stop (void) |
stop timer More... | |
double | getStartTime (void) |
get start time More... | |
double | getRTimeInterval (void) |
get elapsed time from start time More... | |
double | getRTime (void) |
get real time between start timne and stop time More... | |
double | getUTime (void) |
get user time between start timne and stop time More... | |
double | getSTime (void) |
get system time between start timne and stop time More... | |
Public Member Functions inherited from ParaTimer | |
ParaTimer () | |
constructor More... | |
virtual | ~ParaTimer () |
destructor More... | |
void | setOffset (double time) |
virtual void | init (ParaComm *paraComm)=0 |
initialize timer More... | |
virtual double | getElapsedTime ()=0 |
get elapsed time More... | |
Additional Inherited Members | |
Protected Attributes inherited from ParaTimer | |
double | offset |
offset of start time More... | |
Class ParaSysTimer.
Definition at line 107 of file paraSysTimer.h.
ParaSysTimer | ( | ) |
default constructor
Definition at line 114 of file paraSysTimer.h.
~ParaSysTimer | ( | ) |
destructor
Definition at line 122 of file paraSysTimer.h.
|
virtual |
get elapsed time
Implements ParaTimer.
Definition at line 141 of file paraSysTimer.h.
References ParaSysTimer::getRTimeInterval().
double getRTime | ( | void | ) |
get real time between start timne and stop time
Definition at line 225 of file paraSysTimer.cpp.
double getRTimeInterval | ( | void | ) |
get elapsed time from start time
Definition at line 158 of file paraSysTimer.cpp.
Referenced by ParaSysTimer::getElapsedTime(), and ParaTimerTh::getElapsedTime().
double getStartTime | ( | void | ) |
get start time
Definition at line 133 of file paraSysTimer.cpp.
Referenced by ParaCommCPP11::getStartTime(), and ParaCommPth::getStartTime().
double getSTime | ( | void | ) |
get system time between start timne and stop time
Definition at line 286 of file paraSysTimer.cpp.
double getUTime | ( | void | ) |
get user time between start timne and stop time
Definition at line 254 of file paraSysTimer.cpp.
|
virtual |
initialize timer
paraComm | communicator used |
Implements ParaTimer.
Definition at line 130 of file paraSysTimer.h.
References ParaSysTimer::start().
void start | ( | void | ) |
start timer
Definition at line 42 of file paraSysTimer.cpp.
Referenced by ParaCommCPP11::init(), ParaCommPth::init(), ParaTimerTh::init(), ParaSysTimer::init(), and main().
void stop | ( | void | ) |
stop timer
Definition at line 95 of file paraSysTimer.cpp.