zx_clock_read
SUMMARY
Perform a basic read of the clock.
DECLARATION
RIGHTS
handle must be of type ZX_OBJ_TYPE_CLOCK and have ZX_RIGHT_READ.
DESCRIPTION
Perform a basic read of the clock object and return its current time in the now out parameter.
RETURN VALUE
On success, returns ZX_OK along with the clock's current time in the now output parameter.
ERRORS
- ZX_ERR_BAD_HANDLE : handle is either an invalid handle, or a handle to an object type that is not ZX_OBJ_TYPE_CLOCK.
- ZX_ERR_ACCESS_DENIED : handle lacks the ZX_RIGHT_READ right.
SEE ALSO
- [clocks]
- [
zx_clock_create()] - [
zx_clock_get_details()] - [
zx_clock_update()]
clockszx_clock_create()zx_clock_get_details()zx_clock_update()
最后更新:
2022 年 12 月 31 日(Saturday) 21:07 CST