| 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, |