deno.com
method Console.timeEnd
#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