Skip to main content
Console.timeEnd - Web documentation
method Console.timeEnd
Private
Console.timeEnd(label?: string): void

Stops a timer that was previously started

Examples

Example 1

console.time('operation');
// ... some code
console.timeEnd('operation'); // Prints: operation: 1234ms

Parameters

optional
label: string

Timer label to stop. Defaults to 'default'

Return Type

void
Back to top