Project
Loading...
Searching...
No Matches
o2::header::TimeStamp Class Reference

#include <TimeStamp.h>

Public Types

using TimeUnitID = o2::header::Descriptor< 2 >
 

Public Member Functions

 TimeStamp ()=default
 
 TimeStamp (uint64_t ts)
 
 TimeStamp (const TimeUnitID &unit, uint32_t tick, uint16_t subtick=0)
 
 ~TimeStamp ()=default
 
 operator uint64_t () const
 
template<class T , typename Rep = typename T::rep, typename Period = typename T::period>
auto get () const
 

Static Public Attributes

static TimeUnitID const sClockLHC
 
static TimeUnitID const sMicroSeconds
 

Detailed Description

Definition at line 116 of file TimeStamp.h.

Member Typedef Documentation

◆ TimeUnitID

Constructor & Destructor Documentation

◆ TimeStamp() [1/3]

o2::header::TimeStamp::TimeStamp ( )
default

◆ TimeStamp() [2/3]

o2::header::TimeStamp::TimeStamp ( uint64_t  ts)
inline

Definition at line 123 of file TimeStamp.h.

◆ TimeStamp() [3/3]

o2::header::TimeStamp::TimeStamp ( const TimeUnitID unit,
uint32_t  tick,
uint16_t  subtick = 0 
)
inline

Definition at line 124 of file TimeStamp.h.

◆ ~TimeStamp()

o2::header::TimeStamp::~TimeStamp ( )
default

Member Function Documentation

◆ get()

template<class T , typename Rep = typename T::rep, typename Period = typename T::period>
auto o2::header::TimeStamp::get ( ) const
inline

get the duration in the units of the specified clock or duration type the template parameter can either be a clock or duration type following std::chrono concept

Definition at line 136 of file TimeStamp.h.

◆ operator uint64_t()

o2::header::TimeStamp::operator uint64_t ( ) const
inline

Definition at line 131 of file TimeStamp.h.

Member Data Documentation

◆ mBCNumber

uint16_t o2::header::TimeStamp::mBCNumber

Definition at line 175 of file TimeStamp.h.

◆ mPeriod

uint32_t o2::header::TimeStamp::mPeriod

Definition at line 179 of file TimeStamp.h.

◆ mSubTicks

uint16_t o2::header::TimeStamp::mSubTicks

Definition at line 176 of file TimeStamp.h.

◆ mTicks

uint32_t o2::header::TimeStamp::mTicks

Definition at line 180 of file TimeStamp.h.

◆ mTimeStamp64

uint64_t o2::header::TimeStamp::mTimeStamp64

Definition at line 169 of file TimeStamp.h.

◆ mUnit

uint16_t o2::header::TimeStamp::mUnit

Definition at line 171 of file TimeStamp.h.

◆ sClockLHC

TimeStamp::TimeUnitID const TimeStamp::sClockLHC
static

Definition at line 128 of file TimeStamp.h.

◆ sMicroSeconds

TimeStamp::TimeUnitID const TimeStamp::sMicroSeconds
static

Definition at line 129 of file TimeStamp.h.


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