CLOCK_RES_GET

WASI Preview1 function clock_res_get

Definition:

;;; Return the resolution of a clock.
;;; Implementations are required to provide a non-zero value for supported clocks. For unsupported clocks,
;;; return `errno::inval`.
;;; Note: This is similar to `clock_getres` in POSIX.
(@interface func (export "clock_res_get")
;;; The clock for which to return the resolution.
(param $id $clockid)
;;; The resolution of the clock, or an error if one happened.
(result $error (expected $timestamp (error $errno)))
)