Gets the CPU usage with default or custom snapshot interval. The default interval is 1000 milli-seconds.

getCpuUsage(); getCpuUsage(long ms); → returns True if the cache region exists.

Argument Reference for the getCpuUsage function

long ms

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

Fork me on GitHub