rustix 0.33.0

Safe Rust bindings to POSIX/Unix/Linux/Winsock2-like syscalls
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Time-related operations.

use crate::imp;

mod clock;

// TODO: Convert WASI'S clock APIs to use handles rather than ambient clock
// identifiers, update `wasi-libc`, and then add support in `rustix`.
#[cfg(not(any(target_os = "redox", target_os = "wasi")))]
pub use clock::clock_getres;
#[cfg(not(target_os = "wasi"))]
pub use clock::{clock_gettime, clock_gettime_dynamic, ClockId, DynamicClockId};

pub use imp::time::{Nsecs, Secs, Timespec};