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_idThe ID of the clock to queryTimestamp precisionThe maximum amount of error the reading may have
Output:
Timestamp *timeThe value of the clock in nanoseconds