MCPcopy Create free account
hub / github.com/aws/clock-bound / new

Method new

clock-bound/src/daemon/clock_sync_algorithm/source/phc.rs:23–28  ·  view source on GitHub ↗

Create a new PHC reference clock source

(device_path: String, max_dispersion: Skew)

Source from the content-addressed store, hash-verified

21impl Phc {
22 const POLL_INTERVAL: Duration = Duration::from_millis(500);
23
24 /// Create a new PHC reference clock source
25 pub fn new(device_path: DevicePath, max_dispersion: Skew) -> Self {
26 Self {
27 device_path,
28 inner: ff::Phc::new(Self::POLL_INTERVAL, max_dispersion),
29 }
30 }
31

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected