blob: 97bb3f854818af6b03b1bcefcf72057c45c4ff4b [file] [log] [blame] [view]
# Time units
## Userspace exposed time units
*zx\_time\_t* is in nanoseconds.
Use [zx_clock_get()](syscalls/clock_get.md) 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);
```