Sha256: 9fc60d342eb166729729531cf88a3ec3e8baa71b6788f40aeef1351ee8b6c94d

Contents?: true

Size: 789 Bytes

Versions: 7

Compression:

Stored size: 789 Bytes

Contents

//! Time-related operations.

mod clock;
#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))]
#[cfg(feature = "time")]
mod timerfd;

// 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 clock::{Nsecs, Secs, Timespec};
#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))]
#[cfg(feature = "time")]
pub use timerfd::{
    timerfd_create, timerfd_gettime, timerfd_settime, Itimerspec, TimerfdClockId, TimerfdFlags,
    TimerfdTimerFlags,
};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wasmtime-8.0.0 ./ext/cargo-vendor/rustix-0.36.12/src/time/mod.rs
wasmtime-7.0.0 ./ext/cargo-vendor/rustix-0.36.11/src/time/mod.rs
wasmtime-6.0.1 ./ext/cargo-vendor/rustix-0.36.8/src/time/mod.rs
wasmtime-6.0.0 ./ext/cargo-vendor/rustix-0.36.8/src/time/mod.rs
wasmtime-5.0.0 ./ext/cargo-vendor/rustix-0.36.7/src/time/mod.rs
wasmtime-0.4.1 ./ext/cargo-vendor/rustix-0.36.5/src/time/mod.rs
wasmtime-0.4.0 ./ext/cargo-vendor/rustix-0.36.5/src/time/mod.rs