PandaRoot
PndCATimerInfo Class Reference

#include <PndCATimer.h>

Public Member Functions

 PndCATimerInfo ()
 
 PndCATimerInfo (const string &name)
 
void Clear ()
 
void operator= (TStopwatch &sw)
 
void operator+= (TStopwatch &sw)
 
void operator+= (const PndCATimerInfo &t)
 
PndCATimerInfo operator/ (const float f) const
 
void PrintReal ()
 
float Real ()
 
string & Name ()
 

Detailed Description

Definition at line 26 of file PndCATimer.h.

Constructor & Destructor Documentation

◆ PndCATimerInfo() [1/2]

PndCATimerInfo::PndCATimerInfo ( )
inline

Definition at line 28 of file PndCATimer.h.

Referenced by PndCATFIterTimerInfo::Add().

28 : fName(""), fReal(0), fCpu(0){};

◆ PndCATimerInfo() [2/2]

PndCATimerInfo::PndCATimerInfo ( const string &  name)
inline

Definition at line 29 of file PndCATimer.h.

29 : fName(name), fReal(0), fCpu(0){};

Member Function Documentation

◆ Clear()

void PndCATimerInfo::Clear ( void  )
inline

Definition at line 31 of file PndCATimer.h.

Referenced by PndCATFIterTimerInfo::Clear(), and PndCATFTimerInfo::Clear().

32  {
33  fReal = 0;
34  fCpu = 0;
35  }

◆ Name()

string& PndCATimerInfo::Name ( )
inline

Definition at line 64 of file PndCATimer.h.

Referenced by PndCATFIterTimerInfo::PrintReal().

64 { return fName; };

◆ operator+=() [1/2]

void PndCATimerInfo::operator+= ( TStopwatch &  sw)
inline

Definition at line 42 of file PndCATimer.h.

43  {
44  fReal += sw.RealTime();
45  fCpu += sw.CpuTime();
46  };

◆ operator+=() [2/2]

void PndCATimerInfo::operator+= ( const PndCATimerInfo t)
inline

Definition at line 47 of file PndCATimer.h.

48  {
49  fReal += t.fReal;
50  fCpu += t.fCpu;
51  }

◆ operator/()

PndCATimerInfo PndCATimerInfo::operator/ ( const float  f) const
inline

Definition at line 52 of file PndCATimer.h.

References f.

53  {
55  r.fName = fName;
56  r.fReal = fReal / f;
57  r.fCpu = fCpu / f;
58  return r;
59  }
float f
Definition: P4_F32vec4.h:20

◆ operator=()

void PndCATimerInfo::operator= ( TStopwatch &  sw)
inline

Definition at line 37 of file PndCATimer.h.

38  {
39  fReal = sw.RealTime();
40  fCpu = sw.CpuTime();
41  };

◆ PrintReal()

void PndCATimerInfo::PrintReal ( )
inline

Definition at line 62 of file PndCATimer.h.

62 { cout << fReal; };

◆ Real()

float PndCATimerInfo::Real ( )
inline

Definition at line 63 of file PndCATimer.h.

63 { return fReal; };

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