ESyS-Particle  2.3
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::MpiWTimer ( )

References zeroise().

Here is the call graph for this function:

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

References zeroise().

Here is the call graph for this function:

Member Function Documentation

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

References m_name.

double MpiWTimer::getTiming ( ) const

References m_elapsedTime.

Referenced by MpiWTimers::getTiming().

Here is the caller graph for this function:

bool MpiWTimer::isPaused ( ) const

References m_isPaused.

Referenced by pause(), and resume().

Here is the caller graph for this function:

void MpiWTimer::isPaused ( bool  paused)
protected

References m_isPaused.

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:

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:

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:

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:

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

double MpiWTimer::m_elapsedTime
private
bool MpiWTimer::m_isPaused
private

Referenced by isPaused(), and zeroise().

std::string MpiWTimer::m_name
private

Referenced by getName().

double MpiWTimer::m_pauseTime
private

Referenced by pause(), and zeroise().

double MpiWTimer::m_resumeTime
private

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

double MpiWTimer::m_startTime
private

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

double MpiWTimer::m_stopTime
private

Referenced by setStop(), and zeroise().


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