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 862b75d

Browse filesBrowse files
yashLadhadanielleadams
authored andcommitted
doc: added details around console.timeEnd changes
Since PR #29251 is merged into master, the implementation of `console.timeEnd` is not to print the milliseconds on the stdout but instead print a more readable time unit on the console. For example if the total time comes out to be 3456 milliseconds, it will be printed as 3.45 seconds so that it is much more readable and consistent. PR-URL: #35027 Fixes: #35011 Refs: #29251 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1f15e34 commit 862b75d
Copy full SHA for 862b75d

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/console.md‎

Copy file name to clipboardExpand all lines: doc/api/console.md
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ added: v0.1.104
416416
Starts a timer that can be used to compute the duration of an operation. Timers
417417
are identified by a unique `label`. Use the same `label` when calling
418418
[`console.timeEnd()`][] to stop the timer and output the elapsed time in
419-
milliseconds to `stdout`. Timer durations are accurate to the sub-millisecond.
419+
suitable time units to `stdout`. For example, if the elapsed
420+
time is 3869ms, `console.timeEnd()` displays "3.869s".
420421

421422
### `console.timeEnd([label])`
422423
<!-- YAML

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.