zx_clock_read
Summary
Perform a basic read of the clock.
Declaration
#include <zircon/syscalls.h>
zx_status_t zx_clock_read(zx_handle_t handle, zx_time_t* now);
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-12-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-12-13 UTC."],[],[]]