MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
FunctionTiming Class Reference

This class counts the static execution time of a function. More...

#include <timer.h>

Collaboration diagram for FunctionTiming:
[legend]

Public Member Functions

 FunctionTiming (std::string name)
 
 ~FunctionTiming ()
 
FunctionTimingoperator= (const FunctionTiming &t)
 
void in ()
 
void out ()
 
MFloat getInitCpuTime () const
 
MFloat getDeltaCpuTime () const
 
MFloat getInitWallTime () const
 
MFloat getDeltaWallTime () const
 
MString getName () const
 

Private Attributes

MFloat m_initCpuTime = -1.0
 
MFloat m_deltaCpuTime = -1.0
 
MFloat m_tmpCpuTime = -1.0
 
MFloat m_initWallTime = -1.0
 
MFloat m_deltaWallTime = -1.0
 
MFloat m_tmpWallTime = -1.0
 
MString m_name = ""
 

Detailed Description

Author
Lennart Schneiders
Date
14.02.2013

Definition at line 649 of file timer.h.

Constructor & Destructor Documentation

◆ FunctionTiming()

FunctionTiming::FunctionTiming ( std::string  name)
explicit

Definition at line 131 of file timer.cpp.

134 m_tmpCpuTime(0),
136 m_deltaWallTime(0.0),
137 m_tmpWallTime(-1.0),
138 m_name(name) {}
MFloat m_initWallTime
Definition: timer.h:666
MFloat m_deltaWallTime
Definition: timer.h:667
MFloat m_deltaCpuTime
Definition: timer.h:664
MString m_name
Definition: timer.h:669
MFloat m_tmpCpuTime
Definition: timer.h:665
MFloat m_tmpWallTime
Definition: timer.h:668
MFloat m_initCpuTime
Definition: timer.h:663
MFloat cpuTime()
Return the process cpu time (user time) (high-resolution timer - do not use clock())
Definition: functions.h:73
MFloat wallTime()
Definition: functions.h:80

◆ ~FunctionTiming()

FunctionTiming::~FunctionTiming ( )

Definition at line 140 of file timer.cpp.

140{ m_name = "<deleted>"; }

Member Function Documentation

◆ getDeltaCpuTime()

MFloat FunctionTiming::getDeltaCpuTime ( ) const
inline

Definition at line 657 of file timer.h.

657{ return m_deltaCpuTime; }

◆ getDeltaWallTime()

MFloat FunctionTiming::getDeltaWallTime ( ) const
inline

Definition at line 659 of file timer.h.

659{ return m_deltaWallTime; }

◆ getInitCpuTime()

MFloat FunctionTiming::getInitCpuTime ( ) const
inline

Definition at line 656 of file timer.h.

656{ return m_initCpuTime; }

◆ getInitWallTime()

MFloat FunctionTiming::getInitWallTime ( ) const
inline

Definition at line 658 of file timer.h.

658{ return m_initWallTime; }

◆ getName()

MString FunctionTiming::getName ( ) const
inline

Definition at line 660 of file timer.h.

660{ return m_name; }

◆ in()

void FunctionTiming::in ( )

Definition at line 153 of file timer.cpp.

153 {
156}

◆ operator=()

FunctionTiming & FunctionTiming::operator= ( const FunctionTiming t)

Definition at line 142 of file timer.cpp.

◆ out()

void FunctionTiming::out ( )

Definition at line 158 of file timer.cpp.

158 {
161 m_tmpCpuTime = -1.0;
162 m_tmpWallTime = -1.0;
163}

Member Data Documentation

◆ m_deltaCpuTime

MFloat FunctionTiming::m_deltaCpuTime = -1.0
private

Definition at line 664 of file timer.h.

◆ m_deltaWallTime

MFloat FunctionTiming::m_deltaWallTime = -1.0
private

Definition at line 667 of file timer.h.

◆ m_initCpuTime

MFloat FunctionTiming::m_initCpuTime = -1.0
private

Definition at line 663 of file timer.h.

◆ m_initWallTime

MFloat FunctionTiming::m_initWallTime = -1.0
private

Definition at line 666 of file timer.h.

◆ m_name

MString FunctionTiming::m_name = ""
private

Definition at line 669 of file timer.h.

◆ m_tmpCpuTime

MFloat FunctionTiming::m_tmpCpuTime = -1.0
private

Definition at line 665 of file timer.h.

◆ m_tmpWallTime

MFloat FunctionTiming::m_tmpWallTime = -1.0
private

Definition at line 668 of file timer.h.


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