Skip to content

Commit

Permalink
Merge pull request #1 from sgarza/master
Browse files Browse the repository at this point in the history
High res time for node
  • Loading branch information
azendal committed Apr 2, 2015
2 parents 550c34e + 76a6fab commit 4b08151
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 4b08151

Please sign in to comment.