Skip to content

doc: console.time() Does Not Document PR #29251 Changes #35011

@Whobeu

Description

@Whobeu

📗 API Reference Docs Problem

  • Version: 14.9.0
  • Platform: Windows 10 2004 64-bit
  • Subsystem: Console

Location

Section of the site where the content exists

Affected URL(s):

Description

Concise explanation of the problem

The current documentation for console.time states "...when calling console.timeEnd() to stop the timer and output the elapsed time in milliseconds to stdout". However, since the application of PR #29251 that affects Node.js V13 and higher, this behavior changed to "display timeEnd with suitable time unit". For example, if the elapsed time is 3869ms, console.timeEnd() now displays "3.869s". For greater values, it will also display hours and minutes per the code in lib/internal/console/constructor.js. In the examples for console.timeLog() and consooe.timeEnd(), none show anything other than milliseconds as an output.


  • I would like to work on this issue and
    submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions