Chrono and Console log timelines
Jose Marin
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
0
Subscribe to my newsletter
Read articles from Jose Marin directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by