#[unsafe(no_mangle)]pub unsafe extern "C" fn timespec_get(
tp: *mut timespec,
base: c_int,
) -> c_intExpand description
ISO C equivalent to Sys::clock_gettime.
The main differences are that this function:
- returns
0on error andbaseon success - only mandates TIME_UTC as a base
See https://pubs.opengroup.org/onlinepubs/9799919799/functions/timespec_get.html.