Skip to main content
Console.time - console - Node documentation
method Console.time

Usage in Deno

import { type Console } from "node:console";
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