BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Clock Class Reference

#include <Clock.h>

Public Member Functions

 Clock ()
 
virtual ClockWord count (double t)
 
virtual ClockWord count (unsigned int c)
 
virtual void reset ()
 
double freq () const
 
virtual unsigned int cycles ()
 
virtual double elapsed ()
 
 Clock ()
 
virtual ClockWord count (double t)
 
virtual ClockWord count (unsigned int c)
 
virtual void reset ()
 
double freq () const
 
virtual unsigned int cycles ()
 
virtual double elapsed ()
 

Detailed Description

Constructor & Destructor Documentation

◆ Clock() [1/2]

Clock::Clock ( )
inline

Definition at line 27 of file Calibration/facilities/facilities-00-00-04/facilities/Clock.h.

28 : m_time(0), m_freq(2.E7)
29 {}

◆ Clock() [2/2]

Clock::Clock ( )
inline

Definition at line 27 of file InstallArea/include/facilities/facilities/Clock.h.

28 : m_time(0), m_freq(2.E7)
29 {}

Member Function Documentation

◆ count() [1/4]

virtual ClockWord Clock::count ( double  t)
inlinevirtual

Definition at line 31 of file Calibration/facilities/facilities-00-00-04/facilities/Clock.h.

32 {
33 m_time += t;
34 return m_time;
35 }
int t()
Definition: t.c:1

◆ count() [2/4]

virtual ClockWord Clock::count ( double  t)
inlinevirtual

Definition at line 31 of file InstallArea/include/facilities/facilities/Clock.h.

32 {
33 m_time += t;
34 return m_time;
35 }

◆ count() [3/4]

virtual ClockWord Clock::count ( unsigned int  c)
inlinevirtual

Definition at line 37 of file Calibration/facilities/facilities-00-00-04/facilities/Clock.h.

38 {
39 m_time += c * 1./m_freq;
40 return m_time;
41 }

◆ count() [4/4]

virtual ClockWord Clock::count ( unsigned int  c)
inlinevirtual

Definition at line 37 of file InstallArea/include/facilities/facilities/Clock.h.

38 {
39 m_time += c * 1./m_freq;
40 return m_time;
41 }

◆ cycles() [1/2]

virtual unsigned int Clock::cycles ( )
inlinevirtual

Definition at line 53 of file Calibration/facilities/facilities-00-00-04/facilities/Clock.h.

54 {
55 return static_cast<unsigned>(ceil(m_time / m_freq));
56 }

◆ cycles() [2/2]

virtual unsigned int Clock::cycles ( )
inlinevirtual

Definition at line 53 of file InstallArea/include/facilities/facilities/Clock.h.

54 {
55 return static_cast<unsigned>(ceil(m_time / m_freq));
56 }

◆ elapsed() [1/2]

virtual double Clock::elapsed ( )
inlinevirtual

Definition at line 58 of file Calibration/facilities/facilities-00-00-04/facilities/Clock.h.

59 {
60 return m_time;
61 }

◆ elapsed() [2/2]

virtual double Clock::elapsed ( )
inlinevirtual

Definition at line 58 of file InstallArea/include/facilities/facilities/Clock.h.

59 {
60 return m_time;
61 }

◆ freq() [1/2]

double Clock::freq ( ) const
inline

Definition at line 48 of file Calibration/facilities/facilities-00-00-04/facilities/Clock.h.

49 {
50 return m_freq;
51 }

◆ freq() [2/2]

double Clock::freq ( ) const
inline

Definition at line 48 of file InstallArea/include/facilities/facilities/Clock.h.

49 {
50 return m_freq;
51 }

◆ reset() [1/2]

virtual void Clock::reset ( )
inlinevirtual

Definition at line 43 of file Calibration/facilities/facilities-00-00-04/facilities/Clock.h.

44 {
45 m_time = 0;
46 }

◆ reset() [2/2]

virtual void Clock::reset ( )
inlinevirtual

Definition at line 43 of file InstallArea/include/facilities/facilities/Clock.h.

44 {
45 m_time = 0;
46 }

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