📅  最后修改于: 2022-03-11 14:55:13.583000             🧑  作者: Mango
var end, start;
start = new Date();
for (var i = 0; i < 1000; i++) {
Math.sqrt(i);
}
end = new Date();
console.log('Operation took ' + (end.getTime() - start.getTime()) + ' msec');