Scippy

UG

Ubiquity Generator framework

ParaTimerTh Class Reference

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

#include <paraTimerTh.h>

Inheritance diagram for ParaTimerTh:
ParaTimer

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

Detailed Description

class ParaTimerMpi (Timer used in thread communication)

Definition at line 49 of file paraTimerTh.h.

Constructor & Destructor Documentation

◆ ParaTimerTh()

default constructor

Definition at line 59 of file paraTimerTh.h.

◆ ~ParaTimerTh()

destructor

Definition at line 67 of file paraTimerTh.h.

Member Function Documentation

◆ getElapsedTime()

double getElapsedTime ( )
virtual

get elapsed time

Returns
elapsed time

Implements ParaTimer.

Definition at line 86 of file paraTimerTh.h.

References ParaSysTimer::getRTimeInterval(), ParaTimer::offset, and ParaTimerTh::timer.

◆ init()

void init ( ParaComm comm)
virtual

initialize timer

Parameters
commcommunicator used

Implements ParaTimer.

Definition at line 75 of file paraTimerTh.h.

References ParaSysTimer::start(), and ParaTimerTh::timer.

Member Data Documentation

◆ timer

ParaSysTimer timer
private

system timer

Definition at line 52 of file paraTimerTh.h.

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