1.0.0 • Published 10 years ago
getrusage v1.0.0
getrusage for Node
Simple wrapper around the unix method getrusage for reporting CPU Time and other process information
Installation
npm install getrusageOr:
git clone git://github.com/davglass/node-getrusage.git
cd node-getrusage
npm installUsage
var proc = require('getrusage');
console.log(proc.usage()); # Run "man getrusage" for fields.
console.log(proc.getcputime()); # User time + system time.
console.log(proc.getsystemtime()); # System time.Tests
npm install && npm test