| 13 | /// and used by the [`ClockState`](super::clock_state) |
| 14 | /// |
| 15 | /// The presentation (log) schema for this type lives in |
| 16 | /// [`ClockParametersLog`](crate::daemon::logging::ffevents::types::ClockParametersLog). |
| 17 | #[derive(Debug, Clone, PartialEq)] |
| 18 | pub struct ClockParameters { |
| 19 | /// The tsc values that these account for |
| 20 | pub tsc_count: TscCount, |
| 21 | /// The time at `tsc_count` |
| 22 | pub time: Instant, |
| 23 | /// The clock error bound of `time` at `tsc_count` |
| 24 | pub clock_error_bound: Duration, |
| 25 | /// The period of the TSC clock at `tsc_count` |
| 26 | pub period: Period, |
| 27 | /// The max error of the `period` at `tsc_count` |
| 28 | pub period_max_error: Period, |
| 29 | /// The `CLOCK_MONOTONIC_COARSE` time just before these parameters are calculated. |
| 30 | /// FIXME: remove when ClockBound 2.0 clients are not supported anymore. |
| 31 | pub as_of_monotonic: Instant, |
| 32 | } |
| 33 |
nothing calls this directly
no outgoing calls
no test coverage detected