Skip to content

Commit f6ebc82

Browse files
targosrvagg
authored andcommitted
doc: reword description of console.time
PR-URL: #3166 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
1 parent 870108a commit f6ebc82

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/api/console.markdown

+6-6
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ Defaults to `false`. Colors are customizable, see below.
7474

7575
### console.time(label)
7676

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.
8282

8383
### console.timeEnd(label)
8484

8585
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
8787
console.
8888

8989
Example:

0 commit comments

Comments
 (0)