blob: 952e87176464c7a6f89caa7b58100c665587d4b5 [file] [log] [blame] [view]
# Time units
## Userspace exposed time units
*zx\_time\_t* is in nanoseconds.
Use [`zx_clock_get()`] to get the current time.
## Kernel-internal time units
*lk\_time\_t* is in nanoseconds.
To get the current time since boot, use:
```
#include <platform.h>
lk_time_t current_time(void);
```
[`zx_clock_get()`]: /docs/reference/syscalls/clock_get.md