wasi

Function clock_time_get

Source
pub unsafe fn clock_time_get(
    id: Clockid,
    precision: Timestamp,
) -> Result<Timestamp, Errno>
Expand description

Return the time value of a clock. Note: This is similar to clock_gettime in POSIX.

§Parameters

  • id - The clock for which to return the time.
  • precision - The maximum lag (exclusive) that the returned time value may have, compared to its actual value.

§Return

The time value of the clock.