mirror of
https://github.com/nodejs/node.git
synced 2026-11-15 10:36:53 -05:00
Only call into hrtime if there's an observer Also, fix up some previously missed changes from the original refactor Signed-off-by: James M Snell <jasnell@gmail.com> Refs: https://github.com/nodejs/node/issues/37937 Refs: https://github.com/nodejs/node/pull/37136 PR-URL: https://github.com/nodejs/node/pull/38110 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>