Function hermit_abi::clock_gettime
source · pub unsafe extern "C" fn clock_gettime(
clockid: clockid_t,
tp: *mut timespec,
) -> i32
Expand description
get current time
The clock_gettime() functions allow the calling thread
to retrieve the value used by a clock which is specified
by clockid
.
CLOCK_REALTIME
: the system’s real time clock,
expressed as the amount of time since the Epoch.
CLOCK_MONOTONIC
: clock that increments monotonically,
tracking the time since an arbitrary point