EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHTimer::Frequency Class Reference

internal frequency read from cpu information file More...

Public Member Functions

 Frequency ()
 constructor
 
 operator double () const
 frequency accessor
 
double period () const
 period accessor
 

Private Member Functions

void set_cpu_freq (const std::string &cpuinfopath="/proc/cpuinfo")
 read pc frequency from cpuinfo place
 

Private Attributes

double _frequency
 pc frequency
 
double _period
 pc period
 

Detailed Description

internal frequency read from cpu information file

Definition at line 149 of file PHTimer.h.

View newest version in sPHENIX GitHub at line 149 of file PHTimer.h

Constructor & Destructor Documentation

PHTimer::Frequency::Frequency ( )
inline

constructor

Definition at line 153 of file PHTimer.h.

View newest version in sPHENIX GitHub at line 153 of file PHTimer.h

References _frequency, _period, Acts::UnitConstants::e, and set_cpu_freq().

+ Here is the call graph for this function:

Member Function Documentation

PHTimer::Frequency::operator double ( ) const
inline

frequency accessor

Definition at line 167 of file PHTimer.h.

View newest version in sPHENIX GitHub at line 167 of file PHTimer.h

References _frequency.

double PHTimer::Frequency::period ( ) const
inline

period accessor

Definition at line 173 of file PHTimer.h.

View newest version in sPHENIX GitHub at line 173 of file PHTimer.h

References _period.

Referenced by PHTimer::get_difference().

+ Here is the caller graph for this function:

void PHTimer::Frequency::set_cpu_freq ( const std::string &  cpuinfopath = "/proc/cpuinfo")
private

read pc frequency from cpuinfo place

Definition at line 25 of file PHTimer.cc.

View newest version in sPHENIX GitHub at line 25 of file PHTimer.cc

References _frequency.

Referenced by Frequency().

+ Here is the caller graph for this function:

Member Data Documentation

double PHTimer::Frequency::_frequency
private

pc frequency

Definition at line 180 of file PHTimer.h.

View newest version in sPHENIX GitHub at line 180 of file PHTimer.h

Referenced by Frequency(), operator double(), and set_cpu_freq().

double PHTimer::Frequency::_period
private

pc period

Definition at line 183 of file PHTimer.h.

View newest version in sPHENIX GitHub at line 183 of file PHTimer.h

Referenced by Frequency(), and period().


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