1. The console. Time (label) and the console. TimeEnd (label)

  • Description: Prints the time between the run of console.time and the run of console.timeEnd
  • parameter:

    label: Label name (Optional). The same label name must be used for the time and Timend groups
  • Purpose: Test the duration of program execution
Console. time('aaa') // Start method of calculator // test code... Console. timeEnd('aaa') // End method for calculatorCopy the code