Trait cap_time_ext::SystemClockExt [−][src]
pub trait SystemClockExt {
type SystemTime;
fn now_with(&self, precision: Duration) -> Self::SystemTime;
fn resolution(&self) -> Duration;
}Expand description
Extension trait for cap_std::time::SystemClock.
Associated Types
type SystemTime[src]
type SystemTime[src]A system clock datapoint.
Required methods
fn now_with(&self, precision: Duration) -> Self::SystemTime[src]
fn now_with(&self, precision: Duration) -> Self::SystemTime[src]Similar to SystemClock::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.
fn resolution(&self) -> Duration[src]
fn resolution(&self) -> Duration[src]Return the resolution of the clock.
Implementations on Foreign Types
type SystemTime = SystemTime