package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Aug 15, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package spike provides a spike detector for NTP responses.
Detector detects spikes in NTP response samples.
Zero value is ready to use.
IsSpike returns true if the given sample is a spike.
The sample is added to the detector's internal state.
Jitter returns the current jitter.
type Sample struct {
Offset, RTT float64
}
Sample is a single NTP response sample.
SampleFromNTPResponse converts an NTP response to a Sample.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.