Description

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

Syntax

getCPUUsage()
getCPUUsage(long ms)

Parameters

Parameter

Description

long ms

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

 

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy