class ParaTimerMpi (Timer used in thread communication) More...
#include <paraTimerTh.h>
Public Member Functions | |
ParaTimerTh () | |
default constructor More... | |
~ParaTimerTh () | |
destructor More... | |
void | init (ParaComm *comm) |
initialize timer More... | |
double | getElapsedTime () |
get elapsed 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... | |
Private Attributes | |
ParaSysTimer | timer |
system timer More... | |
Additional Inherited Members | |
Protected Attributes inherited from ParaTimer | |
double | offset |
offset of start time More... | |
class ParaTimerMpi (Timer used in thread communication)
Definition at line 49 of file paraTimerTh.h.
ParaTimerTh | ( | ) |
default constructor
Definition at line 59 of file paraTimerTh.h.
~ParaTimerTh | ( | ) |
destructor
Definition at line 67 of file paraTimerTh.h.
|
virtual |
get elapsed time
Implements ParaTimer.
Definition at line 86 of file paraTimerTh.h.
References ParaSysTimer::getRTimeInterval(), ParaTimer::offset, and ParaTimerTh::timer.
|
virtual |
initialize timer
comm | communicator used |
Implements ParaTimer.
Definition at line 75 of file paraTimerTh.h.
References ParaSysTimer::start(), and ParaTimerTh::timer.
|
private |
system timer
Definition at line 52 of file paraTimerTh.h.
Referenced by ParaTimerTh::getElapsedTime(), and ParaTimerTh::init().