Eamonn McManus wrote:
> Luis-Miguel Alventosa reminded me that though the implementation class is
> not public, the com.sun.management.OperatingSystemMXBean interface that it
> implements is. So you can just cast the result of
> ManagementFactory.getOperatingSystemMXBean() to that interface and access
> its getProcessCpuTime() method, or do the same thing via reflection.
Thanks for the pointer!