Expand description
§Embassy embedded-time
This library provides an embedded_time::Clock that can be used with [embassy].
The provided embedded_time::Clock implementation is based on embassy_time.
§Usage
use embassy_embedded_time::EmbassyClock;
use embedded_time::Clock;
let clock = EmbassyClock::default();
let now = clock.try_now().unwrap();
println!("Current time: {:?}", now);
Structs§
- Embassy
Clock - A clock with at maximum microsecond precision.
The actual precision depends on the tick rate configured for the underlying
embassy_timeclock.