getCpuUsage

Gets the CPU usage with default or custom snapshot interval.

getCpuUsage([interval]); → returns numeric

Argument Reference

interval numeric
Default: 1000

Time in milliseconds. This is the time delay between two snapshots.

Examples
Sample code invoking the getCpuUsage function

getCpuUsage()

Fork me on GitHub