1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#[cfg(not(target_os = "redox"))]
mod clock;
#[cfg(not(any(target_os = "wasi", target_os = "redox")))]
pub use clock::{clock_getres, clock_gettime, ClockId};
#[cfg(not(target_os = "redox"))]
pub use clock::{nanosleep, NanosleepRelativeResult};
#[cfg(not(any(
target_os = "macos",
target_os = "ios",
target_os = "ios",
target_os = "redox",
target_os = "freebsd",
target_os = "openbsd",
target_os = "emscripten",
target_os = "wasi",
)))]
pub use clock::{clock_nanosleep_absolute, clock_nanosleep_relative};
#[cfg(libc)]
pub type Timespec = libc::timespec;
#[cfg(linux_raw)]
pub type Timespec = linux_raw_sys::general::__kernel_timespec;