Skip to main content
Console.time - node__console.d.ts - Node documentation
method Console.time

Usage in Deno

```typescript import { type Console } from "node:node__console.d.ts"; ```
Console.time(label?: string): void
Starts a timer that can be used to compute the duration of an operation. Timers are identified by a unique `label`. Use the same `label` when calling timeEnd to stop the timer and output the elapsed time in suitable time units to `stdout`. For example, if the elapsed time is 3869ms, `console.timeEnd()` displays "3.869s".

Parameters

optional
label: string = 'default'

Return Type

void