console.timeEnd([label])


版本历史
版本变更
v13.0.0

已用时间以合适的时间单位显示。

v6.0.0

此方法不再支持不映射到单个 console.time() 调用的多个调用;详情见下文。

v0.1.104

新增于: v0.1.104

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

\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 

AltStyle によって変換されたページ (->オリジナル) /