Skip to main content
method Console.time
Console.time(label?: string): void
Deprecated

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
Back to top