com.caucho.env.meter
Class AverageTimeMeter

java.lang.Object
  extended by com.caucho.env.meter.AbstractMeter
      extended by com.caucho.env.meter.AverageTimeMeter
All Implemented Interfaces:
Meter

public final class AverageTimeMeter
extends AbstractMeter


Constructor Summary
AverageTimeMeter(java.lang.String name)
           
 
Method Summary
 void addData(long time)
           
 double sample()
          Return the probe's next sample.
 
Methods inherited from class com.caucho.env.meter.AbstractMeter
getName, peek, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AverageTimeMeter

public AverageTimeMeter(java.lang.String name)
Method Detail

addData

public final void addData(long time)

sample

public final double sample()
Return the probe's next sample.

Specified by:
sample in interface Meter
Specified by:
sample in class AbstractMeter