std: use correct clock in park_timeout
on Horizon
This commit is contained in:
parent
4c3f8eb277
commit
ce051df3d1
@ -46,7 +46,8 @@ unsafe fn wait_timeout(
|
||||
target_os = "macos",
|
||||
target_os = "ios",
|
||||
target_os = "watchos",
|
||||
target_os = "espidf"
|
||||
target_os = "espidf",
|
||||
target_os = "horizon",
|
||||
))]
|
||||
let (now, dur) = {
|
||||
use crate::cmp::min;
|
||||
@ -72,7 +73,8 @@ unsafe fn wait_timeout(
|
||||
target_os = "macos",
|
||||
target_os = "ios",
|
||||
target_os = "watchos",
|
||||
target_os = "espidf"
|
||||
target_os = "espidf",
|
||||
target_os = "horizon",
|
||||
)))]
|
||||
let (now, dur) = {
|
||||
use crate::sys::time::Timespec;
|
||||
|
Loading…
x
Reference in New Issue
Block a user