Skip to main content

console.time(label)

Starts a timer that can be managed by the current label.

Status: stable
Returns: void

Parameters​

NameTypeDescription
labelstringIdentifier label for the timer

Example usage​

console.time("test");

Extra behaviors​

ConditionConsequenceWorkaround
Call console.time two or more times with the same labelThe timer will be restartedPrefer using different labels to different measurements