|
CatapultServer
v0.5.0.1 (Elephant)
|
Represents a sample in the time synchronization process. More...

Public Member Functions | |
| TimeSynchronizationSample () | |
| Creates a default time synchronization sample. More... | |
| TimeSynchronizationSample (const ionet::Node &node, const CommunicationTimestamps &localTimestamps, const CommunicationTimestamps &remoteTimestamps) | |
| const ionet::Node & | node () const |
| Gets the node. More... | |
| const CommunicationTimestamps & | localTimestamps () const |
| Gets the local timestamps. More... | |
| const CommunicationTimestamps & | remoteTimestamps () const |
| Gets the remote timestamps. More... | |
| utils::TimeSpan | duration () const |
| Gets the duration of the complete cycle. More... | |
| int64_t | localDuration () const |
| Gets the local duration. More... | |
| int64_t | remoteDuration () const |
| Gets the remote duration. More... | |
| int64_t | timeOffsetToRemote () const |
| Gets the offset of the local node's network time relative to the remote node's network time. More... | |
| bool | operator< (const TimeSynchronizationSample &rhs) const |
Returns true if this time synchronization sample is less than rhs. More... | |
| bool | operator== (const TimeSynchronizationSample &rhs) const |
Returns true if this time synchronization sample is equal to rhs. More... | |
| bool | operator!= (const TimeSynchronizationSample &rhs) const |
Returns true if this time synchronization sample is not equal to rhs. More... | |
Private Attributes | |
| ionet::Node | m_node |
| CommunicationTimestamps | m_localTimestamps |
| CommunicationTimestamps | m_remoteTimestamps |
Represents a sample in the time synchronization process.
| catapult::timesync::TimeSynchronizationSample::TimeSynchronizationSample | ( | ) |
Creates a default time synchronization sample.
|
explicit |
Creates a time synchronization sample around node, localTimestamps and remoteTimestamps. localTimestamps (remoteTimestamps) are the timestamps at which the local (remote) node sent and received a request and a response.
| utils::TimeSpan catapult::timesync::TimeSynchronizationSample::duration | ( | ) | const |
Gets the duration of the complete cycle.

| int64_t catapult::timesync::TimeSynchronizationSample::localDuration | ( | ) | const |
Gets the local duration.

| const CommunicationTimestamps & catapult::timesync::TimeSynchronizationSample::localTimestamps | ( | ) | const |
Gets the local timestamps.
| const ionet::Node & catapult::timesync::TimeSynchronizationSample::node | ( | ) | const |
Gets the node.
| bool catapult::timesync::TimeSynchronizationSample::operator!= | ( | const TimeSynchronizationSample & | rhs | ) | const |
Returns true if this time synchronization sample is not equal to rhs.
| bool catapult::timesync::TimeSynchronizationSample::operator< | ( | const TimeSynchronizationSample & | rhs | ) | const |
Returns true if this time synchronization sample is less than rhs.

| bool catapult::timesync::TimeSynchronizationSample::operator== | ( | const TimeSynchronizationSample & | rhs | ) | const |
Returns true if this time synchronization sample is equal to rhs.
| int64_t catapult::timesync::TimeSynchronizationSample::remoteDuration | ( | ) | const |
Gets the remote duration.

| const CommunicationTimestamps & catapult::timesync::TimeSynchronizationSample::remoteTimestamps | ( | ) | const |
Gets the remote timestamps.
| int64_t catapult::timesync::TimeSynchronizationSample::timeOffsetToRemote | ( | ) | const |
Gets the offset of the local node's network time relative to the remote node's network time.


|
private |
|
private |
|
private |