mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
time: fix MockDriver::now()
This commit is contained in:
parent
74683c706b
commit
5f9602d28b
@ -51,7 +51,7 @@ impl MockDriver {
|
||||
|
||||
impl Driver for MockDriver {
|
||||
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> {
|
||||
|
Loading…
Reference in New Issue
Block a user