public class Chronometer extends Object implements Metric, Metered, Estimating, Timed, Shutterbug, Clocked, Stoppable
| Constructor and Description |
|---|
Chronometer(Samples samples,
TimeUnit durationTimeUnit,
long tickInterval,
TimeUnit tickTimeUnit,
Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
double |
getAverage() |
double |
getAverageRate() |
Clock |
getClock() |
long |
getCount() |
double |
getFifteenMinuteAvgRate() |
double |
getFiveMinuteAvgRate() |
TimeUnit |
getLatencyTimeUnit() |
double |
getMax() |
double |
getMin() |
double |
getOneMinuteAvgRate() |
TimeUnit |
getRateTimeUnit() |
String |
getSampleType() |
Snapshot |
getSnapshot() |
double |
getStdDev() |
double |
getSum() |
void |
stop() |
void |
update(long duration) |
public void update(long duration)
public String getSampleType()
getSampleType in interface Estimatingpublic TimeUnit getLatencyTimeUnit()
getLatencyTimeUnit in interface Timedpublic TimeUnit getRateTimeUnit()
getRateTimeUnit in interface Meteredpublic double getOneMinuteAvgRate()
getOneMinuteAvgRate in interface Meteredpublic double getFiveMinuteAvgRate()
getFiveMinuteAvgRate in interface Meteredpublic double getFifteenMinuteAvgRate()
getFifteenMinuteAvgRate in interface Meteredpublic double getAverageRate()
getAverageRate in interface Meteredpublic double getMax()
getMax in interface Estimatingpublic double getMin()
getMin in interface Estimatingpublic double getAverage()
getAverage in interface Estimatingpublic double getStdDev()
getStdDev in interface Estimatingpublic double getSum()
getSum in interface Estimatingpublic Snapshot getSnapshot()
getSnapshot in interface ShutterbugCopyright © 2013. All Rights Reserved.