js ts 取时间间隔

2020-07-25  本文已影响0人  人气小哥

···
console.time("aaa");
for (let index = 0; index < 500; index++) {
cc.log(index)
}
console.timeEnd("aaa");
···

···
aaa: 71.739013671875ms
···

上一篇 下一篇

猜你喜欢

热点阅读