File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -74,16 +74,16 @@ Defaults to `false`. Colors are customizable, see below.
74
74
75
75
### console.time(label)
76
76
77
- Used to calculate the duration of a specific operation. To start a timer, call
78
- the ` console.time() ` method, giving it a name as only parameter. To stop the
79
- timer, and to get the elapsed time in milliseconds, just call the
80
- [ ` console.timeEnd() ` ] ( #console_console_timeend_label ) method, again passing the
81
- timer's name as the parameter .
77
+ Starts a timer that can be used to compute the duration of an operation. Timers
78
+ are identified by a unique name. Use the same name when you call
79
+ [ ` console.timeEnd() ` ] ( #console_console_timeend_label ) to stop the timer and
80
+ output the elapsed time in milliseconds. Timer durations are accurate to the
81
+ sub-millisecond .
82
82
83
83
### console.timeEnd(label)
84
84
85
85
Stops a timer that was previously started by calling
86
- [ ` console.time() ` ] ( #console_console_time_label ) and print the result to the
86
+ [ ` console.time() ` ] ( #console_console_time_label ) and prints the result to the
87
87
console.
88
88
89
89
Example:
You can’t perform that action at this time.
0 commit comments