trace-timer
v0.0.5
Published
trace timer
Downloads
5
Readme
Trace timer
Simple timer to trace your graph-like complex async code.
Install
npm install trace-timer
Use
const TraceTimer = require('trace-timer')
timer = new TraceTimer('someName', null, false);
const timer1 = new TraceTimer('someChild1', null, false);
timer1.countSync(()=>clock.tick(100));
const timer2 = new TraceTimer('someChild2', null, false);
timer2.countAsync(async()=>clock.tick(100));
timer.addChild(timer1);
timer.addChild(timer2);
console.log(timer);