MCPcopy Create free account
hub / github.com/facebook/time / DataPoint

Struct DataPoint

fbclock/daemon/daemon.go:56–69  ·  view source on GitHub ↗

DataPoint is what we store in DataPoint ring buffer

Source from the content-addressed store, hash-verified

54var errCorrectness = errors.New("sanity checking data point error")
55var errNoLeapData = errors.New("no leap second data to build a TAI anchor from")
56
57// defaultTargets is a list of targets if no available
58var defaultTargets = []string{"::1", "::2", "::3"}
59
60// DataPoint is what we store in DataPoint ring buffer
61type DataPoint struct {
62 // IngressTimeNS represents ingress time in NanoSeconds
63 IngressTimeNS int64
64 // MasterOffsetNS represents master offset in NanoSeconds
65 MasterOffsetNS float64
66 // PathDelayNS represents path delay in NanoSeconds
67 PathDelayNS float64
68 // FreqAdjustmentPPB represents freq adjustment in parts per billion
69 FreqAdjustmentPPB float64
70 // ClockAccuracyNS represents clock accurary in nanoseconds
71 ClockAccuracyNS float64
72 // ServoState represents the servo state from the PTP client

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected