Skip to content

Commit

Permalink
High res time for node
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarza committed Mar 26, 2015
1 parent 550c34e commit 76a6fab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lithium.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ performance.now = (function() {
performance.msNow ||
performance.oNow ||
performance.webkitNow ||
function() { return new Date().getTime(); };
function() {
var hrTime = process.hrtime();
return (hrTime[0] + (hrTime[1] / 1000000));
};
})();

Li = {
Expand Down

0 comments on commit 76a6fab

Please sign in to comment.