Merge pull request #68 from kleetus/master
Node 4 process.hrtime(undefined)
This commit is contained in:
commit
f9daa3b947
@ -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();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user