Lines Matching defs:ClockSource
63 pub trait ClockSource {
88 impl ClockSource for Monotonic {
113 impl ClockSource for RealTime {
131 impl ClockSource for BootTime {
153 impl ClockSource for Tai {
169 pub struct Instant<C: ClockSource> {
174 impl<C: ClockSource> Clone for Instant<C> {
180 impl<C: ClockSource> Copy for Instant<C> {}
182 impl<C: ClockSource> Instant<C> {
186 // INVARIANT: The `ClockSource::ktime_get()` function returns a value in the range
228 impl<C: ClockSource> ops::Sub for Instant<C> {
240 impl<T: ClockSource> ops::Add<Delta> for Instant<T> {
260 impl<T: ClockSource> ops::Sub<Delta> for Instant<T> {