Method description:
Start time, corresponding to console.timeEnd, recording time period.
Grammar:
console.time(label)
Receive parameters:
Label corresponds to the label of console.log at the start time
Example:
console.time('100-elements');
for (var i = 0; i < 100; i ) {
;
}
console.timeEnd('100-elements');
Source code:
Console.prototype.time = function(label) {
This._times[label] = Date.now();
};
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn