B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
NanosTimeConvertRecalib Class Reference

#include <TimeUtils.h>

+ Collaboration diagram for NanosTimeConvertRecalib:

Public Member Functions

void _calibrate ()
 
void _recalibrate (bool forceToGoBackward=false)
 
int64_t calcDiff ()
 
int64_t calcDiff1 ()
 
int64_t getDelta ()
 
void init ()
 
 NanosTimeConvertRecalib ()
 
System::Time::AbsoluteSystemTimeUsec1970 nanosToAbsoluteSystemTimeUsec1970 (uint64_t nanos)
 
void recalibrate ()
 

Public Attributes

spinlock init_lock_
 
volatile int inited_
 
volatile int64_t nanosToUsecDelta2_
 
volatile int64_t nanosToUsecDelta_
 

Constructor & Destructor Documentation

NanosTimeConvertRecalib::NanosTimeConvertRecalib ( )
inline

Member Function Documentation

void NanosTimeConvertRecalib::_calibrate ( )
inline

References calcDiff(), nanosToUsecDelta2_, and nanosToUsecDelta_.

Referenced by init().

void NanosTimeConvertRecalib::_recalibrate ( bool  forceToGoBackward = false)
inline
int64_t NanosTimeConvertRecalib::calcDiff ( )
inline

References calcDiff1().

Referenced by _calibrate(), and _recalibrate().

int64_t NanosTimeConvertRecalib::calcDiff1 ( )
inline
int64_t NanosTimeConvertRecalib::getDelta ( )
inline
void NanosTimeConvertRecalib::init ( )
inline
System::Time::AbsoluteSystemTimeUsec1970 NanosTimeConvertRecalib::nanosToAbsoluteSystemTimeUsec1970 ( uint64_t  nanos)
inline

References getDelta().

void NanosTimeConvertRecalib::recalibrate ( )
inline

References _recalibrate(), init(), and inited_.

Member Data Documentation

spinlock NanosTimeConvertRecalib::init_lock_

Referenced by init().

volatile int NanosTimeConvertRecalib::inited_

Referenced by init(), and recalibrate().

volatile int64_t NanosTimeConvertRecalib::nanosToUsecDelta2_

Referenced by _calibrate(), _recalibrate(), and getDelta().

volatile int64_t NanosTimeConvertRecalib::nanosToUsecDelta_

Referenced by _calibrate(), _recalibrate(), and getDelta().