OperatingSystemMXBean.html#getSystemCpuLoad and getProcessCpuLoad could be useful here.
OperatingSystemMXBean.html#getSystemCpuLoad and getProcessCpuLoad could be useful here.