Trait emulator_hal::Instant
source · pub trait Instant: Add<Self::Duration, Output = Self> + Eq + Ord + Debug + Copy {
type Duration: Mul<u32, Output = Self::Duration> + Debug;
const START: Self;
// Required method
fn hertz_to_duration(hertz: u64) -> Self::Duration;
}
Expand description
Represents a monotonic instant in time
Required Associated Types§
Required Associated Constants§
Required Methods§
sourcefn hertz_to_duration(hertz: u64) -> Self::Duration
fn hertz_to_duration(hertz: u64) -> Self::Duration
Returns the duration of one period of the given frequency is hertz
Object Safety§
This trait is not object safe.