class ParaTimerMpi (Timer used in MPI communication) More...
#include <paraTimerMpi.h>
Public Member Functions | |
ParaTimerMpi () | |
constructor More... | |
~ParaTimerMpi () | |
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 | |
double | startTime |
satrt time More... | |
Additional Inherited Members | |
Protected Attributes inherited from ParaTimer | |
double | offset |
offset of start time More... | |
class ParaTimerMpi (Timer used in MPI communication)
Definition at line 50 of file paraTimerMpi.h.
ParaTimerMpi | ( | ) |
~ParaTimerMpi | ( | ) |
destructor
Definition at line 69 of file paraTimerMpi.h.
|
virtual |
get elapsed time
Implements ParaTimer.
Definition at line 85 of file paraTimerMpi.h.
References ParaTimer::offset, and ParaTimerMpi::startTime.
|
virtual |
Initialize timer.
comm | communicator used |
Implements ParaTimer.
Definition at line 43 of file paraTimerMpi.cpp.
References comm, DEF_PARA_COMM, and ParaTimerMpi::startTime.
|
private |
satrt time
Definition at line 53 of file paraTimerMpi.h.
Referenced by ParaTimerMpi::getElapsedTime(), ParaTimerMpi::init(), and ParaTimerMpi::ParaTimerMpi().