duration-log
v0.0.5
Published
``` npm install duration-log ```
Downloads
2
Readme
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}