[][src]Function wasi::clock_time_get

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

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

  • time - The time value of the clock.