[][src]Function wasi::clock_res_get

pub unsafe fn clock_res_get(id: Clockid) -> Result<Timestamp>

Return the resolution of a clock. Implementations are required to provide a non-zero value for supported clocks. For unsupported clocks, return WASI_EINVAL Note: This is similar to clock_getres in POSIX.

Parameters

  • id - The clock for which to return the resolution.

Return

  • resolution - The resolution of the clock.