You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use common methods for duration calculations
We use `process.hrtime` a lot throughout the codebase to track
durations for certain operations, often storing the result of it
on an object and using it later for duration calculation. This
patch changes that to depend on numbers rather than hrtime, which
would make it easy in the future to use something like
`performance.now` or even degrade into `Date.now` in environments
which don't support hi-res timers.
NODE-2651
0 commit comments