| 
    CatapultServer
    v0.5.0.1 (Elephant)
    
   | 
 
Time synchronization state. More...
Public Member Functions | |
| TimeSynchronizationState (uint64_t clockAdjustmentThreshold) | |
| TimeOffset | offset () const | 
| Gets the offset.  More... | |
| uint64_t | absoluteOffset () const | 
| Gets the absolute value of the current offset.  More... | |
| TimeOffsetDirection | offsetDirection () const | 
| Gets the offset direction.  More... | |
| NodeAge | nodeAge () const | 
| Gets the node age.  More... | |
| Timestamp | networkTime () const | 
| Gets the network time.  More... | |
| void | update (TimeOffset offset) | 
| Updates the current offset using offset.  More... | |
Private Attributes | |
| uint64_t | m_clockAdjustmentThreshold | 
| std::atomic< int64_t > | m_offset | 
| std::atomic< int64_t > | m_nodeAge | 
Time synchronization state.
      
  | 
  explicit | 
Creates a time synchronization state that only updates internal offset values when magnitude of change is greater than clockAdjustmentThreshold.
| uint64_t catapult::timesync::TimeSynchronizationState::absoluteOffset | ( | ) | const | 
Gets the absolute value of the current offset.
| Timestamp catapult::timesync::TimeSynchronizationState::networkTime | ( | ) | const | 
Gets the network time.

| NodeAge catapult::timesync::TimeSynchronizationState::nodeAge | ( | ) | const | 
Gets the node age.

| TimeOffset catapult::timesync::TimeSynchronizationState::offset | ( | ) | const | 
Gets the offset.

| TimeOffsetDirection catapult::timesync::TimeSynchronizationState::offsetDirection | ( | ) | const | 
Gets the offset direction.
| void catapult::timesync::TimeSynchronizationState::update | ( | TimeOffset | offset | ) | 
Updates the current offset using offset.


      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |