ESyS-Particle  2.3.4
MpiWTimer Class Reference

#include <Timer.h>

Collaboration diagram for MpiWTimer:

Public Member Functions

 MpiWTimer ()
 
 MpiWTimer (const std::string &name)
 
void setStart (const double &wTime)
 
void pause (const double &wTime)
 
void resume (const double &wTime)
 
void setStop (const double &wTime, bool elapseIsStopMinusStart=false)
 
double getTiming () const
 
const std::string & getName () const
 
bool isPaused () const
 
void zeroise ()
 

Protected Member Functions

void isPaused (bool paused)
 

Private Attributes

std::string m_name
 
double m_startTime
 
double m_stopTime
 
bool m_isPaused
 
double m_pauseTime
 
double m_resumeTime
 
double m_elapsedTime
 

Detailed Description

Simple timer class for storing a start and stop time.

Constructor & Destructor Documentation

◆ MpiWTimer() [1/2]

MpiWTimer::MpiWTimer ( )

References zeroise().

Here is the call graph for this function:

◆ MpiWTimer() [2/2]

MpiWTimer::MpiWTimer ( const std::string &  name)

References zeroise().

Here is the call graph for this function:

Member Function Documentation

◆ getName()

const std::string & MpiWTimer::getName ( ) const

References m_name.

◆ getTiming()

double MpiWTimer::getTiming ( ) const

References m_elapsedTime.

Referenced by MpiWTimers::getTiming().

Here is the caller graph for this function:

◆ isPaused() [1/2]

bool MpiWTimer::isPaused ( ) const

References m_isPaused.

Referenced by pause(), and resume().

Here is the caller graph for this function:

◆ isPaused() [2/2]

void MpiWTimer::isPaused ( bool  paused)
protected

References m_isPaused.

◆ pause()

void MpiWTimer::pause ( const double &  wTime)

References isPaused(), m_elapsedTime, m_pauseTime, and m_resumeTime.

Referenced by MpiWTimers::pause(), and setStop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resume()

void MpiWTimer::resume ( const double &  wTime)

References isPaused(), and m_resumeTime.

Referenced by MpiWTimers::resume(), and setStart().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStart()

void MpiWTimer::setStart ( const double &  wTime)

References m_elapsedTime, m_startTime, and resume().

Referenced by MpiWTimers::start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStop()

void MpiWTimer::setStop ( const double &  wTime,
bool  elapseIsStopMinusStart = false 
)

References m_elapsedTime, m_startTime, m_stopTime, and pause().

Referenced by MpiWTimers::stop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ zeroise()

void MpiWTimer::zeroise ( )

References m_elapsedTime, m_isPaused, m_pauseTime, m_resumeTime, m_startTime, and m_stopTime.

Referenced by MpiWTimer(), and MpiWTimers::zeroise().

Here is the caller graph for this function:

Member Data Documentation

◆ m_elapsedTime

double MpiWTimer::m_elapsedTime
private

◆ m_isPaused

bool MpiWTimer::m_isPaused
private

Referenced by isPaused(), and zeroise().

◆ m_name

std::string MpiWTimer::m_name
private

Referenced by getName().

◆ m_pauseTime

double MpiWTimer::m_pauseTime
private

Referenced by pause(), and zeroise().

◆ m_resumeTime

double MpiWTimer::m_resumeTime
private

Referenced by pause(), resume(), and zeroise().

◆ m_startTime

double MpiWTimer::m_startTime
private

Referenced by setStart(), setStop(), and zeroise().

◆ m_stopTime

double MpiWTimer::m_stopTime
private

Referenced by setStop(), and zeroise().


The documentation for this class was generated from the following files: