[−][src]Trait cap_time_ext::MonotonicClockExt
Extension trait for cap_std::time::MonotonicClock.
Associated Types
Loading content...Required methods
pub fn now_with(&self, precision: Duration) -> Self::Instant[src]
Similar to MonotonicClock::now, but takes an additional precision
parameter allowing callers to inform the implementation when they
don't need full precision. The implementation need not make any
effort to provide a time with greater precision.
pub fn resolution(&self) -> Duration[src]
Return the resolution of the clock.