Scippy

UG

Ubiquity Generator framework

ParaTimerMpi Class Reference

class ParaTimerMpi (Timer used in MPI communication) More...

#include <paraTimerMpi.h>

Inheritance diagram for ParaTimerMpi:
ParaTimer

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...
 

Detailed Description

class ParaTimerMpi (Timer used in MPI communication)

Definition at line 50 of file paraTimerMpi.h.

Constructor & Destructor Documentation

◆ ParaTimerMpi()

constructor

Definition at line 60 of file paraTimerMpi.h.

References ParaTimerMpi::startTime.

◆ ~ParaTimerMpi()

destructor

Definition at line 69 of file paraTimerMpi.h.

Member Function Documentation

◆ getElapsedTime()

double getElapsedTime ( )
virtual

get elapsed time

Returns
elapsed time

Implements ParaTimer.

Definition at line 85 of file paraTimerMpi.h.

References ParaTimer::offset, and ParaTimerMpi::startTime.

◆ init()

void init ( ParaComm comm)
virtual

Initialize timer.

Parameters
commcommunicator used

Implements ParaTimer.

Definition at line 43 of file paraTimerMpi.cpp.

References comm, DEF_PARA_COMM, and ParaTimerMpi::startTime.

Member Data Documentation

◆ startTime

double startTime
private

satrt time

Definition at line 53 of file paraTimerMpi.h.

Referenced by ParaTimerMpi::getElapsedTime(), ParaTimerMpi::init(), and ParaTimerMpi::ParaTimerMpi().