Skip to main content

SimpleClock

Trait SimpleClock 

Source
pub trait SimpleClock {
    // Required method
    fn now_us(&self) -> u64;
}
Expand description

Provides an abstraction for hardware-specific clocks with the microsecond precision.

Required Methods§

Source

fn now_us(&self) -> u64

Returns an instant time in the microseconds.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§