bun-types
Version:
Type definitions and documentation for Bun, an incredibly fast JavaScript runtime
16 lines (11 loc) • 302 B
text/mdx
title: Get the process uptime in nanoseconds
sidebarTitle: Process uptime
mode: center
Use `Bun.nanoseconds()` to get the total number of nanoseconds the `bun` process has been alive.
```ts
Bun.nanoseconds();
```
See [Docs > API > Utils](/docs/runtime/utils) for more useful utilities.