Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const io = require('@pm2/io')
const http = require('http')
io.init({
network: {
traffic: true
}
})
/**
* Probe system #1 - Histograms
*
* Measuring the event loop delay
*/
const TIME_INTERVAL = 1000
let oldTime = process.hrtime()