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

Function test_precision_maintained

clock-bound/src/shm.rs:1169–1178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1167 /// (`max_drift_ppb`) and the period estimate's relative error (`period_err`), each times the
1168 /// elapsed time.
1169 #[test]
1170 fn test_ceb_v3_bound_grows_with_drift_and_period_error() {
1171 let ceb = ClockErrorBoundV3::new(
1172 0, // as_of_tsc
1173 TimeSpec::new(1, 0), // as_of
1174 TimeSpec::new(100, 0), // void_after
1175 1e-9, // period = 1 ns (1 GHz clock)
1176 1e-6, // period_err = 1 ppm, relative
1177 10_000, // bound_nsec = 10 µs
1178 0, // disruption_marker
1179 2_000, // max_drift_ppb = 2 ppm
1180 ClockStatus::Synchronized,
1181 true,

Callers

nothing calls this directly

Calls 1

absMethod · 0.80

Tested by

no test coverage detected