std: use correct clock in park_timeout on Horizon

This commit is contained in:
joboet 2022-09-05 18:04:48 +02:00
parent 4c3f8eb277
commit ce051df3d1
No known key found for this signature in database
GPG Key ID: 704E0149B0194B3C

View File

@ -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;