Scippy

UG

Ubiquity Generator framework

ParaSysTimer Class Reference

Class ParaSysTimer. More...

#include <paraSysTimer.h>

Inheritance diagram for ParaSysTimer:
ParaTimer

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

Detailed Description

Class ParaSysTimer.

Definition at line 107 of file paraSysTimer.h.

Constructor & Destructor Documentation

◆ ParaSysTimer()

default constructor

Definition at line 114 of file paraSysTimer.h.

◆ ~ParaSysTimer()

destructor

Definition at line 122 of file paraSysTimer.h.

Member Function Documentation

◆ getElapsedTime()

double getElapsedTime ( )
virtual

get elapsed time

Returns
elapsed time

Implements ParaTimer.

Definition at line 141 of file paraSysTimer.h.

References ParaSysTimer::getRTimeInterval().

◆ getRTime()

double getRTime ( void  )

get real time between start timne and stop time

Returns
real time

Definition at line 225 of file paraSysTimer.cpp.

◆ getRTimeInterval()

double getRTimeInterval ( void  )

get elapsed time from start time

Returns
elapsed time

Definition at line 158 of file paraSysTimer.cpp.

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

◆ getStartTime()

double getStartTime ( void  )

get start time

Returns
start time

Definition at line 133 of file paraSysTimer.cpp.

Referenced by ParaCommCPP11::getStartTime(), and ParaCommPth::getStartTime().

◆ getSTime()

double getSTime ( void  )

get system time between start timne and stop time

Returns
system time

Definition at line 286 of file paraSysTimer.cpp.

◆ getUTime()

double getUTime ( void  )

get user time between start timne and stop time

Returns
user time

Definition at line 254 of file paraSysTimer.cpp.

◆ init()

void init ( ParaComm paraComm)
virtual

initialize timer

Parameters
paraCommcommunicator used

Implements ParaTimer.

Definition at line 130 of file paraSysTimer.h.

References ParaSysTimer::start().

◆ 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().

◆ stop()

void stop ( void  )

stop timer

Definition at line 95 of file paraSysTimer.cpp.