CatapultServer  v0.5.0.1 (Elephant)
TimeSynchronizationResult.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "catapult/types.h"
23 
24 namespace catapult { namespace timesync {
25 
28  public:
30  TimeSynchronizationResult(catapult::Timestamp timestamp, int64_t currentOffset, int64_t change)
31  : Timestamp(timestamp)
32  , CurrentOffset(currentOffset)
33  , Change(change)
34  {}
35 
36  public:
39 
41  int64_t CurrentOffset;
42 
44  int64_t Change;
45  };
46 }}
catapult::timesync::TimeSynchronizationResult::Timestamp
catapult::Timestamp Timestamp
Time when the synchronization happened.
Definition: TimeSynchronizationResult.h:38
catapult::timesync::TimeSynchronizationResult::Change
int64_t Change
Change in time offset caused by the synchronization.
Definition: TimeSynchronizationResult.h:44
catapult::utils::BaseValue< uint64_t, Timestamp_tag >
catapult::timesync::TimeSynchronizationResult::TimeSynchronizationResult
TimeSynchronizationResult(catapult::Timestamp timestamp, int64_t currentOffset, int64_t change)
Creates a result around timestamp, currentOffset and change.
Definition: TimeSynchronizationResult.h:30
types.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::timesync::TimeSynchronizationResult::CurrentOffset
int64_t CurrentOffset
Time offset after the synchronization.
Definition: TimeSynchronizationResult.h:41
catapult::timesync::TimeSynchronizationResult
Information about the result of a time synchronization procedure with a remote node.
Definition: TimeSynchronizationResult.h:27