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