Idea for microtick() on Node

This commit is contained in:
copy 2015-09-12 01:42:07 +02:00
parent f53fc0ffa5
commit 3855f6062c

View file

@ -186,6 +186,14 @@ if(typeof performance === "object" && performance.now)
return performance.now();
};
}
//else if(typeof process === "object" && process.hrtime)
//{
// v86.microtick = function()
// {
// var t = process.hrtime();
// return t[0] * 1000 + t[1] / 1e6;
// };
//}
else
{
v86.microtick = Date.now;