Skip to main content
Console.timeLog - node__console.d.ts - Node documentation
method Console.timeLog

Usage in Deno

```typescript import { type Console } from "node:node__console.d.ts"; ```
Console.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`: ```js console.time('process'); const value = expensiveProcess1(); // Returns 42 console.timeLog('process', value); // Prints "process: 365.227ms 42". doExpensiveProcess2(value); console.timeEnd('process'); ```

Parameters

optional
label: string = 'default'
...data: any[]

Return Type

void