Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f6ebc82

Browse filesBrowse files
targosrvagg
authored andcommitted
doc: reword description of console.time
PR-URL: #3166 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
1 parent 870108a commit f6ebc82
Copy full SHA for f6ebc82

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Collapse file

‎doc/api/console.markdown‎

Copy file name to clipboardExpand all lines: doc/api/console.markdown
+6-6Lines changed: 6 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.