time: fix MockDriver::now()

This commit is contained in:
Andres O. Vela 2023-10-31 22:48:52 +01:00
parent 74683c706b
commit 5f9602d28b

View File

@ -51,7 +51,7 @@ impl MockDriver {
impl Driver for MockDriver { impl Driver for MockDriver {
fn now(&self) -> u64 { fn now(&self) -> u64 {
critical_section::with(|cs| self.now.borrow(cs).get().as_micros() as u64) critical_section::with(|cs| self.now.borrow(cs).get().as_ticks() as u64)
} }
unsafe fn allocate_alarm(&self) -> Option<AlarmHandle> { unsafe fn allocate_alarm(&self) -> Option<AlarmHandle> {