1# zx_clock_get_monotonic
2
3## NAME
4
5<!-- Updated by update-docs-from-abigen, do not edit. -->
6
7clock_get_monotonic - Acquire the current monotonic time.
8
9## SYNOPSIS
10
11<!-- Updated by update-docs-from-abigen, do not edit. -->
12
13```
14#include <zircon/syscalls.h>
15
16zx_time_t zx_clock_get_monotonic(void);
17```
18
19## DESCRIPTION
20
21`zx_clock_get_monotonic()` returns the current time in the system
22monotonic clock. This is the number of nanoseconds since the system was
23powered on.
24
25## RIGHTS
26
27<!-- Updated by update-docs-from-abigen, do not edit. -->
28
29TODO(ZX-2399)
30
31## RETURN VALUE
32
33[`zx_clock_get()`] returns the current monotonic time.
34
35## ERRORS
36
37`zx_clock_get_monotonic()` cannot fail.
38
39<!-- References updated by update-docs-from-abigen, do not edit. -->
40
41[`zx_clock_get()`]: clock_get.md
42