Skip to main content
RecordableHistogram - node__perf_hooks.d.ts - Node documentation
interface RecordableHistogram
extends Histogram

Usage in Deno

```typescript import { type RecordableHistogram } from "node:node__perf_hooks.d.ts"; ```

Methods

record(val: number | bigint): void
recordDelta(): void
Calculates the amount of time (in nanoseconds) that has passed since the previous call to `recordDelta()` and records that amount in the histogram.
add(other: RecordableHistogram): void
Adds the values from `other` to this histogram.