wasmer_wasix::syscalls::wasi::clock_res_get

Function clock_res_get

Source
pub fn clock_res_get<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    clock_id: Snapshot0Clockid,
    resolution: WasmPtr<Timestamp, M>,
) -> Errno
Expand description

ยงclock_res_get()

Get the resolution of the specified clock Input:

  • Clockid clock_id The ID of the clock to get the resolution of Output:
  • Timestamp *resolution The resolution of the clock in nanoseconds