@icebob/cpu
v1.0.0
Published
Promise-based CPU Usage meter.
Downloads
7
Readme
cpu
Promise-based CPU Usage meter. No dependencies!
Install
npm install @icebob/cpu
Usage
var cpu = require('@icebob/cpu');
cpu().then(({avg, usages}) => {
console.log(avg, usages);
});
Change sample time:
var cpu = require('@icebob/cpu');
cpu(500).then(({avg, usages}) => {
console.log(avg, usages);
});