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

Class ClockParameters

clock-bound/src/daemon/clock_parameters.rs:15–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)]
18pub 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected