Skip to content

Instantly share code, notes, and snippets.

@nicksarafa
Forked from ericelliott/nstime.js
Created November 3, 2016 19:47
Show Gist options
  • Save nicksarafa/ccb99a1a05c18a4b58265e93b22ceaec to your computer and use it in GitHub Desktop.
Save nicksarafa/ccb99a1a05c18a4b58265e93b22ceaec 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