Skip to content

hrtime regression #4751

Closed
Closed
@BridgeAR

Description

@BridgeAR

I have the feeling 89f056b introduced a regression. The nanoseconds might return negative values if you compare the actual value with the one before. This does not occur in 5.3 or before.

> process.hrtime(t)
[ 45, 373756947 ]
> process.hrtime(t)
[ 46, -1831860 ]

Easy to reproduce with:

var t = process.hrtime(); while(t[1] > 0) t = process.hrtime(t);

Metadata

Metadata

Assignees

No one assigned

    Labels

    processIssues and PRs related to the process subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions