CatapultServer
v0.5.0.1 (Elephant)
|
size_t m_offset
Definition: BlockElementParser.cpp:64
Time offset is in positive direction.
void update(TimeOffset offset)
Updates the current offset using offset.
Definition: TimeSynchronizationState.cpp:54
TimeOffsetDirection
Direction of a time offset.
Definition: TimeSynchronizationState.h:28
TimeSynchronizationState(uint64_t clockAdjustmentThreshold)
Definition: TimeSynchronizationState.cpp:28
Timestamp networkTime() const
Gets the network time.
Definition: TimeSynchronizationState.cpp:50
uint64_t m_clockAdjustmentThreshold
Definition: TimeSynchronizationState.h:64
constexpr ValueType unwrap() const
Unwraps this value and returns the underlying raw value.
Definition: BaseValue.h:53
utils::BaseValue< int64_t, NodeAge_tag > NodeAge
Definition: extensions/timesync/src/types.h:32
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
std::atomic< int64_t > m_offset
Definition: TimeSynchronizationState.h:65
NodeAge nodeAge() const
Gets the node age.
Definition: TimeSynchronizationState.cpp:46
TimeOffset offset() const
Gets the offset.
Definition: TimeSynchronizationState.cpp:34
Time synchronization state.
Definition: TimeSynchronizationState.h:37
utils::BaseValue< uint64_t, Timestamp_tag > Timestamp
Definition: src/catapult/types.h:73
TimeOffsetDirection offsetDirection() const
Gets the offset direction.
Definition: TimeSynchronizationState.cpp:42
std::atomic< int64_t > m_nodeAge
Definition: TimeSynchronizationState.h:66
uint64_t absoluteOffset() const
Gets the absolute value of the current offset.
Definition: TimeSynchronizationState.cpp:38
utils::BaseValue< int64_t, TimeOffset_tag > TimeOffset
Definition: extensions/timesync/src/types.h:28
Definition: AddressExtractionExtension.cpp:28
Time offset is in negative direction.
Timestamp NetworkTime()
Returns the network time, i.e. the number of milliseconds since Epoch_Time.
Definition: NetworkTime.cpp:27