Skip to content

Instantly share code, notes, and snippets.

@nicksarafa
Forked from ericelliott/nstime.js
Created November 3, 2016 19:47
Show Gist options
  • Select an option

  • Save nicksarafa/ccb99a1a05c18a4b58265e93b22ceaec to your computer and use it in GitHub Desktop.

Select an option

Save nicksarafa/ccb99a1a05c18a4b58265e93b22ceaec to your computer and use it in GitHub Desktop.

Revisions

  1. @ericelliott ericelliott created this gist May 14, 2016.
    1 change: 1 addition & 0 deletions nstime.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    const nsTime = (hrtime) => hrtime[0] * 1e9 + hrtime[1];