0.0.5 • Published 9 years ago

duration-log v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

duration-log

Install

npm install duration-log

Examples

var Duration = require('duration-log');

var duration = new Duration();
 
dataset.forEach(function(item){
    var d = duration.start("ProcessA");
    //hervey process here
    d.stop();
    
    d = duration.start("ProcessB");
    //heavy process here
    d.stop();
});

console.log(JSON.stringify(sumup));

// OUTPUT (msec)
// {"ProcessA":1043, "ProcessB":1093}
0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago