Example #1
0
exports.timeEndLevel = function(level, label) {
    label = UTIL.format.apply(UTIL, Array.prototype.slice.call(arguments, 1));
    var duration = Date.now() - times[label];
    exports.flog(level, '%s: ' + color('red', '%dms'), label, duration);
    delete times[label];
};
Example #2
0
exports.timeEnd = function(label) {
    label = UTIL.format.apply(UTIL, arguments);
    var duration = Date.now() - times[label];
    exports.flog('info', '%s: ' + color('red', '%dms'), label, duration);
    delete times[label];
};