com.jsyn.engine
Class LoadAnalyzer

java.lang.Object
  extended by com.jsyn.engine.LoadAnalyzer

public class LoadAnalyzer
extends java.lang.Object

Measure CPU load.


Method Summary
 double getAverageLoad()
          Calculate, on average, how much of the time was spent doing something.
 void start()
          Call this when you start doing something.
 void stop()
          Call this when you stop doing something.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stop

public void stop()
Call this when you stop doing something. Ideally all of the time since start() was spent on doing something without interruption.


start

public void start()
Call this when you start doing something.


getAverageLoad

public double getAverageLoad()
Calculate, on average, how much of the time was spent doing something.