| CatapultServer
    v0.5.0.1 (Elephant)
    | 
A time synchronizer that synchronizes local time with the network. More...

| Public Member Functions | |
| TimeSynchronizer (const filters::AggregateSynchronizationFilter &filter, Importance totalChainImportance, int64_t warningThresholdMillis=Warning_Threshold_Millis) | |
| Creates a time synchronizer around filter, totalChainImportance and warningThresholdMillis.  More... | |
| TimeOffset | calculateTimeOffset (const cache::AccountStateCacheView &accountStateCacheView, Height height, TimeSynchronizationSamples &&samples, NodeAge nodeAge) | 
| Calculates a time offset from samples using accountStateCacheView, height and nodeAge.  More... | |
| Private Member Functions | |
| Importance::ValueType | sumImportances (const cache::ImportanceView &importanceView, Height height, const TimeSynchronizationSamples &samples) | 
| double | sumScaledOffsets (const cache::ImportanceView &importanceView, Height height, const TimeSynchronizationSamples &samples, double scaling) | 
| Private Attributes | |
| filters::AggregateSynchronizationFilter | m_filter | 
| Importance | m_totalChainImportance | 
| int64_t | m_warningThresholdMillis | 
A time synchronizer that synchronizes local time with the network.
| 
 | explicit | 
Creates a time synchronizer around filter, totalChainImportance and warningThresholdMillis.
| TimeOffset catapult::timesync::TimeSynchronizer::calculateTimeOffset | ( | const cache::AccountStateCacheView & | accountStateCacheView, | 
| Height | height, | ||
| TimeSynchronizationSamples && | samples, | ||
| NodeAge | nodeAge | ||
| ) | 
Calculates a time offset from samples using accountStateCacheView, height and nodeAge.


| 
 | private | 


| 
 | private | 


| 
 | private | 
| 
 | private | 
| 
 | private |