node.js中的console.time方法使用说明
方法说明:开始时间,与console.timeEnd对应,记录时间段。语法:代码如下: console.time(label)接收参数: Label与开始时间console.log的label对应例子:代码如下: console.time(‘100-elements’); for (var i = 0; i < 100; i++) { ; } console.timeEnd(‘100-elements’);源码:代码如下: Console.prototype.time = function(label) { this._tim
18.25KB
文件大小:
评论区