pub unsafe fn clock_res_get(id: Clockid) -> Result<Timestamp, Errno>
Expand description
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.
§Parameters
id
- The clock for which to return the resolution.
§Return
The resolution of the clock, or an error if one happened.