OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Private Attributes | List of all members
Timing Struct Reference

#include <IpplTimings.h>

Public Types

typedef unsigned int TimerRef
 
typedef IpplTimerInfo TimerInfo
 
typedef std::vector
< my_auto_ptr< TimerInfo > > 
TimerList_t
 
typedef std::map< std::string,
TimerInfo * > 
TimerMap_t
 

Public Member Functions

 Timing ()
 
 ~Timing ()
 
TimerRef getTimer (const char *)
 
void startTimer (TimerRef)
 
void stopTimer (TimerRef)
 
void clearTimer (TimerRef)
 
TimerInfoinfoTimer (const char *nm)
 
void print ()
 
void print (const std::string &fn, const std::map< std::string, unsigned int > &problemSize)
 

Private Attributes

TimerList_t TimerList
 
TimerMap_t TimerMap
 

Detailed Description

Definition at line 119 of file IpplTimings.h.

Member Typedef Documentation

Definition at line 125 of file IpplTimings.h.

typedef std::vector<my_auto_ptr<TimerInfo> > Timing::TimerList_t

Definition at line 159 of file IpplTimings.h.

typedef std::map<std::string, TimerInfo *> Timing::TimerMap_t

Definition at line 160 of file IpplTimings.h.

typedef unsigned int Timing::TimerRef

Definition at line 122 of file IpplTimings.h.

Constructor & Destructor Documentation

Timing::Timing ( )

Definition at line 45 of file IpplTimings.cpp.

Timing::~Timing ( )

Definition at line 53 of file IpplTimings.cpp.

References TimerList, and TimerMap.

Member Function Documentation

void Timing::clearTimer ( TimerRef  t)

Definition at line 102 of file IpplTimings.cpp.

References TimerList.

Referenced by IpplTimings::clearTimer().

Timing::TimerRef Timing::getTimer ( const char *  nm)

Definition at line 65 of file IpplTimings.cpp.

References IpplTimerInfo::indx, IpplTimerInfo::name, TimerList, TimerMap, and value_type().

Referenced by IpplTimings::getTimer().

Here is the call graph for this function:

TimerInfo* Timing::infoTimer ( const char *  nm)
inline

Definition at line 146 of file IpplTimings.h.

References TimerMap.

Referenced by IpplTimings::infoTimer().

void Timing::print ( )

Definition at line 167 of file IpplTimings.cpp.

References IpplTimerInfo::cpuTime, endl(), IpplInfo::getNodes(), min(), IpplTimerInfo::name, reduce(), TimerList, and IpplTimerInfo::wallTime.

Referenced by IpplTimings::print().

Here is the call graph for this function:

void Timing::print ( const std::string &  fn,
const std::map< std::string, unsigned int > &  problemSize 
)

Definition at line 231 of file IpplTimings.cpp.

References IpplTimerInfo::cpuTime, endl(), IpplInfo::getNodes(), min(), IpplTimerInfo::name, reduce(), TimerList, and IpplTimerInfo::wallTime.

Here is the call graph for this function:

void Timing::startTimer ( TimerRef  t)

Definition at line 84 of file IpplTimings.cpp.

References TimerList.

Referenced by IpplTimings::startTimer().

void Timing::stopTimer ( TimerRef  t)

Definition at line 93 of file IpplTimings.cpp.

References TimerList.

Referenced by IpplTimings::stopTimer().

Member Data Documentation

TimerList_t Timing::TimerList
private

Definition at line 164 of file IpplTimings.h.

Referenced by clearTimer(), getTimer(), print(), startTimer(), stopTimer(), and ~Timing().

TimerMap_t Timing::TimerMap
private

Definition at line 167 of file IpplTimings.h.

Referenced by getTimer(), infoTimer(), and ~Timing().


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