VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-console-timelog-method/

⇱ Node.js console.timeLog() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js console.timeLog() Method

Last Updated : 7 Oct, 2021
The console.timeLog() method is an inbuilt function in Nodejs that is used to display the time for each execution. This function is proved to be effective when used in a loop. Syntax:
console.log([label][, ...data])
Parameters: This function accepts two or more parameters. Return Value: This method displays the time for the execution. Below examples illustrate the console.timeLog() method in Node.js: Example 1: Output: 👁 Image
Example 2: Output: 👁 Image
Reference: https://nodejs.org/api/console.html#console_console_timelog_label_data
Comment

Explore