public class DropwizardFunctionTimer<T> extends AbstractMeter implements FunctionTimer
FunctionTimer.Builder<T>
Meter.Id, Meter.Type
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.TimeUnit |
baseTimeUnit() |
double |
count() |
com.codahale.metrics.Timer |
getDropwizardMeter() |
double |
totalTime(java.util.concurrent.TimeUnit unit) |
getId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder, mean, measure
public com.codahale.metrics.Timer getDropwizardMeter()
public double count()
count
in interface FunctionTimer
public double totalTime(java.util.concurrent.TimeUnit unit)
totalTime
in interface FunctionTimer
unit
- The base unit of time to scale the total to.public java.util.concurrent.TimeUnit baseTimeUnit()
baseTimeUnit
in interface FunctionTimer