console.timeEnd([label])


停止之前通过调用 console.time() 启动的计时器并将结果打印到 stdout

console.time('bunch-of-stuff');
// 做一些事。
console.timeEnd('bunch-of-stuff');
// 打印: bunch-of-stuff: 225.438ms

Stops a timer that was previously started by calling console.time() and prints the result to stdout:

console.time('bunch-of-stuff');
// Do a bunch of stuff.
console.timeEnd('bunch-of-stuff');
// Prints: bunch-of-stuff: 225.438ms