method Console.timeLog
Jump to headingConsole.timeLog(label?: string,...data: any[],): void
For a timer that was previously started by calling time, prints
the elapsed time and other data
arguments to stdout
:
console.time('process');
const value = expensiveProcess1(); // Returns 42
console.timeLog('process', value);
// Prints "process: 365.227ms 42".
doExpensiveProcess2(value);
console.timeEnd('process');
Parameters Jump to heading
optional
Jump to headinglabel: string = 'default'
Jump to heading<span>...data</span>: any[]
Return Type Jump to heading
void