Trait kernel::hil::time::Frequency

source ·
pub trait Frequency {
    // Required method
    fn frequency() -> u32;
}
Expand description

Represents a clock’s frequency in Hz, allowing code to transform between computer time units and wall clock time. It is typically an associated type for an implementation of the Time trait.

Required Methods§

source

fn frequency() -> u32

Returns frequency in Hz.

Object Safety§

This trait is not object safe.

Implementors§