From f6ebc8277b2c7b8f9f9837c15624156185250461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 7 Oct 2015 20:01:36 +0200 Subject: [PATCH] doc: reword description of console.time PR-URL: https://github.com/nodejs/node/pull/3166 Reviewed-By: Rich Trott Reviewed-By: Roman Reiss Reviewed-By: Trevor Norris --- doc/api/console.markdown | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/api/console.markdown b/doc/api/console.markdown index 329b57ef9b57e6..f3a69ce95104e2 100644 --- a/doc/api/console.markdown +++ b/doc/api/console.markdown @@ -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: