Skip to main content

time

method Console.time
Jump to headingConsole.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 Jump to heading

optional
Jump to headinglabel: string = 'default'

Return Type Jump to heading

void
Back to top