📜  在变量 js 中存储 console.timeEnd - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:57.979000             🧑  作者: Mango

代码示例1
//Not quite using console.time and console.timeEnd, but it will work
//Doesn't log it to console
var start = window.performance.now();
...
var end = window.performance.now();
var time = end - start;