Class TimeMeter

  extended by com.caucho.env.meter.AbstractMeter
      extended by com.caucho.env.meter.TimeMeter
All Implemented Interfaces:
Meter, TimeSensor

public final class TimeMeter
extends AbstractMeter
implements TimeSensor

Constructor Summary
TimeMeter(java.lang.String name)
Method Summary
 void add(long time)
          Adds a time sample to the probe
 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


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


public final void add(long time)
Description copied from interface: TimeSensor
Adds a time sample to the probe

Specified by:
add in interface TimeSensor


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

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