aboutsummaryrefslogtreecommitdiff
path: root/docs/guides/process/nanoseconds.md
blob: b8aee81235d6a2b0f7997579a06329eebbab1fa1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
name: Get the process uptime in nanoseconds
---

Use `Bun.nanoseconds()` to get the total number of nanoseconds the `bun` process has been alive.

```ts
Bun.nanoseconds();
```

---

See [Docs > API > Utils](/docs/api/utils) for more useful utilities.