Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

C++ Port of Unix getrusage for getting cputime, usertime and other process information

tree: f3677ce11e

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .npmignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 binding.gyp
Octocat-spinner-32 getrusage.cc
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
README.md

getrusage for Node

Simple wrapper around the unix method getrusage for reporting CPU Time and other process information

Installation

npm install getrusage

Or:

git clone git://github.com/davglass/node-getrusage.git
cd node-getrusage
make

Usage

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.

Build Status

Build Status

Something went wrong with that request. Please try again.