This was primarily written to provide accurate event loop statistics for our blog post on the node event loop.
constEventLoopMonitor=require("node-event-loop-stats").EventLoopMonitor;constmonitor=newEventLoopMonitor();monitor.start();setInterval(()=>{console.log("Event loop: "+monitor.getStatsString());},1000);