| |
|
| java.lang.Object org.cougaar.tools.csmart.runtime.jni.CpuClock
CpuClock | public class CpuClock (Code) | | |
Method Summary | |
public double | cpuLoad() Get ratio of cpu time to real time. | public double | cpuLoad(boolean reset) Get the cpu utilization -- the ratio of cpu time to real time. | public static synchronized long | cpuTimeMillis() Get total cpu time in milliseconds. | public static void | main(String args) |
cpuLoad | public double cpuLoad()(Code) | | Get ratio of cpu time to real time.
|
cpuLoad | public double cpuLoad(boolean reset)(Code) | | Get the cpu utilization -- the ratio of cpu time to real time. If
no real time has elapsed, returns 0.0.
Parameters: reset - resets the bases for the next call to this method tozero. |
cpuTimeMillis | public static synchronized long cpuTimeMillis()(Code) | | Get total cpu time in milliseconds. This is the basis for every
other use of cpu time.
|
|
|
|