governor/clock/
default.rs

1#[cfg(all(feature = "std", not(feature = "quanta")))]
2/// The default clock that reports [`Instant`][std::time::Instant]s.
3pub type DefaultClock = crate::clock::MonotonicClock;
4
5#[cfg(all(feature = "std", feature = "quanta"))]
6/// The default clock using [`quanta`] for extremely fast timekeeping (at a 100ns resolution).
7pub type DefaultClock = crate::clock::QuantaClock;
8
9#[cfg(not(feature = "std"))]
10/// The default `no_std` clock that reports [`Durations`][core::time::Duration] must be advanced by the
11/// program.
12pub type DefaultClock = crate::clock::FakeRelativeClock;