console.time([label])
label
<string> 默认值:'default'
启动可用于计算操作持续时间的计时器。
计时器由唯一的 label
标识。
label
<string> Default:'default'
Starts a timer that can be used to compute the duration of an operation. Timers
are identified by a unique label
. Use the same label
when calling
console.timeEnd()
to stop the timer and output the elapsed time in
milliseconds to stdout
. Timer durations are accurate to the sub-millisecond.