Function hermit_abi::clock_gettime

source ·
pub unsafe extern "C" fn clock_gettime(
    clock_id: u64,
    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 clock_id.

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