Chrono and Console log timelines

·

1 min read

Logs are as necessary as tedious. They give valuable information in a usually terrible format. Coming to the rescue when we need to log time events, we have Chrono functionality in js-awe library:

https://www.npmjs.com/package/js-awe

npm install js-awe

Chrono

Chrono time events and visualize them.

Spread in your Async code some:

chrono.time(‘step1’)
chrono.timeEnd(‘step1’)

And then ```chrono.report()``` to log the timeline and some stats.

Full example at: chronoExample.js