JavaScript Console time()
JavaScript Console time()
The time() method is used for starting a timer in the console view. It allows us to time code for testing and debugging purposes. It allows us to run multiple times at the same time by using label parameter i.e, separating each timer by a label. Its similar method is the console.timeEnd() Method.
Syntax:-
Its syntax is:- console.time(label)
Further Explanation:-
Parameter | Description |
label | Optional. A label to give timer a name. |