# bare-hrtime

> High-resolution timers for JavaScript

Latest version **2.1.2** (published 2026-09-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install bare-hrtime
pnpm add bare-hrtime
yarn add bare-hrtime
bun add bare-hrtime
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.1.2 |
| Published | 2026-09-01 |
| First published | 2023-08-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 454.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3 |
| Author | Holepunch |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/bare-hrtime
- Repository: https://github.com/holepunchto/bare-hrtime
- Homepage: https://github.com/holepunchto/bare-hrtime#readme
- Issues: https://github.com/holepunchto/bare-hrtime/issues
- npm.io page: https://npm.io/package/bare-hrtime

## Recent versions

- 2.1.2 (latest) — 2026-09-01
- 2.1.1 — 2025-09-23
- 2.1.0 — 2025-08-21
- 2.0.11 — 2025-03-24
- 2.0.10 — 2024-10-20
- 2.0.9 — 2024-09-13
- 2.0.8 — 2024-09-10
- 2.0.7 — 2024-09-02
- 2.0.6 — 2024-08-29
- 2.0.5 — 2024-03-13
- 2.0.4 — 2024-02-13
- 2.0.3 — 2024-02-09
- 2.0.2 — 2024-02-05
- 2.0.1 — 2024-02-05
- 2.0.0 — 2023-11-13
- … 1 more at https://npm.io/package/bare-hrtime/versions

## README

# bare-hrtime

High-resolution timers for JavaScript.

```
npm i bare-hrtime
```

## Usage

```js
const hrtime = require('bare-hrtime')

hrtime() // returns [seconds, nanoseconds]
hrtime.bigint() // returns nanoseconds
```

## License

Apache-2.0

---
_Source: https://npm.io/package/bare-hrtime · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
