Skip to content

Commit

Permalink
doc: reword description of console.time
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
targos authored and rvagg committed Oct 19, 2015
1 parent 870108a commit f6ebc82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/api/console.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ Defaults to `false`. Colors are customizable, see below.

### console.time(label)

Used to calculate the duration of a specific operation. To start a timer, call
the `console.time()` method, giving it a name as only parameter. To stop the
timer, and to get the elapsed time in milliseconds, just call the
[`console.timeEnd()`](#console_console_timeend_label) method, again passing the
timer's name as the parameter.
Starts a timer that can be used to compute the duration of an operation. Timers
are identified by a unique name. Use the same name when you call
[`console.timeEnd()`](#console_console_timeend_label) to stop the timer and
output the elapsed time in milliseconds. Timer durations are accurate to the
sub-millisecond.

### console.timeEnd(label)

Stops a timer that was previously started by calling
[`console.time()`](#console_console_time_label) and print the result to the
[`console.time()`](#console_console_time_label) and prints the result to the
console.

Example:
Expand Down

0 comments on commit f6ebc82

Please sign in to comment.