Commit 1e5a0262 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

src: fix negative values in process.hrtime()

Fix a regression introduced in commit 89f056bd ("node: improve
performance of hrtime()") where the nanosecond field sometimes
had a negative value when calculating the difference between two
timestamps.

Fixes: https://github.com/nodejs/node/issues/4751
PR-URL: https://github.com/nodejs/node/pull/4757


Reviewed-By: default avatarEvan Lucas <evanlucas@me.com>
Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
Reviewed-By: default avatarСковорода Никита Андреевич <chalkerx@gmail.com>
parent d50a8a98
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment