Function rustix::thread::clock_nanosleep_relative
pub fn clock_nanosleep_relative(id: ClockId, request: &Timespec) -> NanosleepRelativeResult
The portability is definied by:
#[cfg(any(linux_raw,
all(libc,
not(any(target_os = "dragonfly", target_os = "emscripten", target_os =
"freebsd", target_os = "ios", target_os = "macos", target_os = "redox",
target_os = "openbsd", target_os = "wasi",)))))]
Documentation
clock_nanosleep(id, 0, request, remain)
—Sleeps for a duration on a
given clock.
This is clock_nanosleep
specialized for the case of a relative sleep
interval. See clock_nanosleep_absolute
for absolute intervals.