Merge pull request #68 from kleetus/master

Node 4 process.hrtime(undefined)
This commit is contained in:
Christopher Jeffrey (JJ) 2016-08-11 23:40:47 -07:00 committed by GitHub
commit f9daa3b947

View File

@ -403,7 +403,8 @@ utils.hrtime = function hrtime(time) {
return [sec, ms * 1e6];
}
return process.hrtime(time);
return Array.isArray(time) && time.length == 2 ?
process.hrtime(time) : process.hrtime();
};
/**