getCpuUsage

Gets the CPU usage with default or custom snapshot interval.

getCpuUsage([interval]); → returns numeric

getCpuUsage Argument Reference

interval numeric
Default: 1000

Time in milli-seconds. This is the time delay between two snapshots.

Examples sample code invoking the getCpuUsage function


Output CPU usage from current snapshot

getCpuUsage()

Fork me on GitHub