Skip to content

Commit

Permalink
doc: added note warning about change to console.endTime()
Browse files Browse the repository at this point in the history
Unintended functionality was removed from console.endTime by
nodejs#3562. Prior to that, you could
call console.endTime multiple times for the same label.

PR-URL: nodejs#6454
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Robert Lindstaedt <robert.lindstaedt@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Jeremy Whitlock <jwhitlock@apache.org>
  • Loading branch information
ben-page authored and joelostrowski committed May 4, 2016
1 parent 46acf73 commit 1c4fd80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ console.timeEnd('100-elements');
// prints 100-elements: 225.438ms
```

*Note: As of Node.js v6.0.0, `console.timeEnd()` deletes the timer to avoid
leaking it. On older versions, the timer persisted. This allowed
`console.timeEnd()` to be called multiple times for the same label. This
functionality was unintended and is no longer supported.*

### console.trace(message[, ...])

Prints to `stderr` the string `'Trace :'`, followed by the [`util.format()`][]
Expand Down

0 comments on commit 1c4fd80

Please sign in to comment.