1b8a62b91Sopenharmony_ci//! Time-related operations. 2b8a62b91Sopenharmony_ci 3b8a62b91Sopenharmony_cimod clock; 4b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))] 5b8a62b91Sopenharmony_ci#[cfg(feature = "time")] 6b8a62b91Sopenharmony_cimod timerfd; 7b8a62b91Sopenharmony_ci 8b8a62b91Sopenharmony_ci// TODO: Convert WASI'S clock APIs to use handles rather than ambient clock 9b8a62b91Sopenharmony_ci// identifiers, update `wasi-libc`, and then add support in `rustix`. 10b8a62b91Sopenharmony_ci#[cfg(not(any(target_os = "redox", target_os = "wasi")))] 11b8a62b91Sopenharmony_cipub use clock::clock_getres; 12b8a62b91Sopenharmony_ci#[cfg(not(target_os = "wasi"))] 13b8a62b91Sopenharmony_cipub use clock::{clock_gettime, clock_gettime_dynamic, ClockId, DynamicClockId}; 14b8a62b91Sopenharmony_cipub use clock::{Nsecs, Secs, Timespec}; 15b8a62b91Sopenharmony_ci#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))] 16b8a62b91Sopenharmony_ci#[cfg(feature = "time")] 17b8a62b91Sopenharmony_cipub use timerfd::{ 18b8a62b91Sopenharmony_ci timerfd_create, timerfd_gettime, timerfd_settime, Itimerspec, TimerfdClockId, TimerfdFlags, 19b8a62b91Sopenharmony_ci TimerfdTimerFlags, 20b8a62b91Sopenharmony_ci}; 21