Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created May 14, 2016 09:16
Show Gist options
  • Save ericelliott/faf1a80d110c219675bb8fbc1222f9fb to your computer and use it in GitHub Desktop.
Save ericelliott/faf1a80d110c219675bb8fbc1222f9fb to your computer and use it in GitHub Desktop.
Convert Node's process.hrtime() return values to nanoseconds
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