> ## Documentation Index
> Fetch the complete documentation index at: https://bun.ll1025.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取进程运行时间的纳秒数

使用 `Bun.nanoseconds()` 获取 `bun` 进程已运行的总纳秒数。

```ts theme={null}
Bun.nanoseconds();
```

***

参见 [工具](/runtime/utils) 了解更多实用工具。
