org.smallmind.instrument
Class Chronometer
java.lang.Object
org.smallmind.instrument.Chronometer
- All Implemented Interfaces:
- Clocked, Countable, Estimating, Metered, Metric, Shutterbug, Stoppable, Timed
public class Chronometer
- extends Object
- implements Metric, Metered, Estimating, Timed, Shutterbug, Clocked, Stoppable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
update
public void update(long duration)
getSampleType
public String getSampleType()
- Specified by:
getSampleType in interface Estimating
getClock
public Clock getClock()
- Specified by:
getClock in interface Clocked
getLatencyTimeUnit
public TimeUnit getLatencyTimeUnit()
- Specified by:
getLatencyTimeUnit in interface Timed
getRateTimeUnit
public TimeUnit getRateTimeUnit()
- Specified by:
getRateTimeUnit in interface Metered
getCount
public long getCount()
- Specified by:
getCount in interface Countable
getOneMinuteRate
public double getOneMinuteRate()
- Specified by:
getOneMinuteRate in interface Metered
getFiveMinuteRate
public double getFiveMinuteRate()
- Specified by:
getFiveMinuteRate in interface Metered
getFifteenMinuteRate
public double getFifteenMinuteRate()
- Specified by:
getFifteenMinuteRate in interface Metered
getAverageRate
public double getAverageRate()
- Specified by:
getAverageRate in interface Metered
getMax
public double getMax()
- Specified by:
getMax in interface Estimating
getMin
public double getMin()
- Specified by:
getMin in interface Estimating
getAverage
public double getAverage()
- Specified by:
getAverage in interface Estimating
getStdDev
public double getStdDev()
- Specified by:
getStdDev in interface Estimating
getSum
public double getSum()
- Specified by:
getSum in interface Estimating
getSnapshot
public Snapshot getSnapshot()
- Specified by:
getSnapshot in interface Shutterbug
stop
public void stop()
- Specified by:
stop in interface Stoppable
Copyright © 2012. All Rights Reserved.