zx_clock_get_boot

Summary

Acquire the current boot time.

Declaration

#include <zircon/syscalls.h>

zx_time_t zx_clock_get_boot(void);

Description

zx_clock_get_boot() returns the current time in the system boot clock. This is the number of nanoseconds since the system was powered on, including any time spent in a suspended state. It is set to zero whenever the kernel is initialized.

Rights

None.

Return value

zx_clock_get_boot() returns the current boot time.

Errors

zx_clock_get_boot() cannot fail.