-
-
Save crazy4groovy/eee9077ef674a1b2cc846bbf1a514493 to your computer and use it in GitHub Desktop.
Convert Node's process.hrtime() return values to nanoseconds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nsTime = (hrtime) => hrtime[0] * 1e9 + hrtime[1]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment