Acquire the current monotonic time.
#include <zircon/syscalls.h> zx_time_t zx_clock_get_monotonic(void);
zx_clock_get_monotonic() returns the current time in the system
monotonic clock. This is the number of nanoseconds since the system was
powered on. It does not always reset on reboot and does not adjust during
sleep, and thus should not be used as a reliable source of uptime.
zx_clock_get() returns the current monotonic time.
zx_clock_get_monotonic() cannot fail.
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.