Function wasmer_wasix::syscalls::wasi::clock_time_get::clock_time_get

source ·
pub fn clock_time_get<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    clock_id: Snapshot0Clockid,
    precision: Timestamp,
    time: WasmPtr<Timestamp, M>,
) -> Result<Errno, WasiError>
Expand description

§clock_time_get()

Get the time of the specified clock

Inputs:

  • Clockid clock_id The ID of the clock to query
  • Timestamp precision The maximum amount of error the reading may have

Output:

  • Timestamp *time The value of the clock in nanoseconds