Project
Loading...
Searching...
No Matches
o2::header::LHCClock< RefTimePoint, Precision > Class Template Reference

#include <TimeStamp.h>

Public Types

using rep = typename lhc_clock_parameter::Property< Precision >::rep
 
using period = typename lhc_clock_parameter::Property< Precision >::period
 
using duration = std::chrono::duration< rep, period >
 
using time_point = std::chrono::time_point< LHCClock >
 

Public Member Functions

 LHCClock (const RefTimePoint &start)
 
 LHCClock ()=delete
 forbidden, always need a reference
 
 ~LHCClock ()=default
 
 LHCClock (const LHCClock &)=default
 
LHCClockoperator= (const LHCClock &)=default
 
time_point now () noexcept
 

Static Public Attributes

static const bool is_steady = true
 

Detailed Description

template<typename RefTimePoint, typename Precision = lhc_clock_parameter::OrbitPrecision>
class o2::header::LHCClock< RefTimePoint, Precision >

Definition at line 81 of file TimeStamp.h.

Member Typedef Documentation

◆ duration

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
using o2::header::LHCClock< RefTimePoint, Precision >::duration = std::chrono::duration<rep, period>

Definition at line 93 of file TimeStamp.h.

◆ period

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
using o2::header::LHCClock< RefTimePoint, Precision >::period = typename lhc_clock_parameter::Property<Precision>::period

Definition at line 92 of file TimeStamp.h.

◆ rep

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
using o2::header::LHCClock< RefTimePoint, Precision >::rep = typename lhc_clock_parameter::Property<Precision>::rep

Definition at line 91 of file TimeStamp.h.

◆ time_point

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
using o2::header::LHCClock< RefTimePoint, Precision >::time_point = std::chrono::time_point<LHCClock>

Definition at line 94 of file TimeStamp.h.

Constructor & Destructor Documentation

◆ LHCClock() [1/3]

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
o2::header::LHCClock< RefTimePoint, Precision >::LHCClock ( const RefTimePoint &  start)
inline

Definition at line 84 of file TimeStamp.h.

◆ LHCClock() [2/3]

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
o2::header::LHCClock< RefTimePoint, Precision >::LHCClock ( )
delete

forbidden, always need a reference

◆ ~LHCClock()

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
o2::header::LHCClock< RefTimePoint, Precision >::~LHCClock ( )
default

◆ LHCClock() [3/3]

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
o2::header::LHCClock< RefTimePoint, Precision >::LHCClock ( const LHCClock< RefTimePoint, Precision > &  )
default

Member Function Documentation

◆ now()

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
time_point o2::header::LHCClock< RefTimePoint, Precision >::now ( )
inlinenoexcept

the now() function is the main characteristics of the clock calculate now from the system clock and the reference start time

Definition at line 100 of file TimeStamp.h.

◆ operator=()

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
LHCClock & o2::header::LHCClock< RefTimePoint, Precision >::operator= ( const LHCClock< RefTimePoint, Precision > &  )
default

Member Data Documentation

◆ is_steady

template<typename RefTimePoint , typename Precision = lhc_clock_parameter::OrbitPrecision>
const bool o2::header::LHCClock< RefTimePoint, Precision >::is_steady = true
static

Definition at line 96 of file TimeStamp.h.


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