Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
use embassy_time::Instant;
use vlfs::Timer as VLFSTimer;
#[derive(Clone, Copy)]
pub struct EmbassyTimer {}
impl EmbassyTimer {
pub fn new() -> Self {
Self {}
}
}
impl VLFSTimer for EmbassyTimer {
fn now_ms(&self) -> f64 {
Instant::now().as_micros() as f64 / 1000.0
}
}
b4afe803eThis file is pinned to the selected release. Download the original to open it in your design tool.