public class Timer
extends com.codahale.metrics.Timer
| Constructor and Description |
|---|
Timer()
Creates a timer that reports the histogram since last snapshot,
with no limit on trackable values and 2 significant value digits.
|
Timer(int numberOfSignificantValueDigits)
Creates a timer that reports the histogram since last snapshot, with significant digits in the value specified.
|
Timer(int numberOfSignificantValueDigits,
Clock clock,
boolean reportTotalHistogram)
Creates a timer with significant digits in the value, a clock specified
and if the total histogram should be reported instead of the one collected since last snapshot.
|
Timer(long highestTrackableValue,
int numberOfSignificantValueDigits)
Creates a timer that reports the histogram since last snapshot,
with highest trackable value and significant digits in the value specified.
|
Timer(long highestTrackableValue,
int numberOfSignificantValueDigits,
Clock clock,
boolean reportTotalHistogram)
Creates a timer with highest trackable value, significant digits in the value, a clock specified,
and if the total histogram should be reported instead of the one collected since last snapshot.
|
public Timer()
public Timer(long highestTrackableValue,
int numberOfSignificantValueDigits)
highestTrackableValue - The highest value tracked. Anything larger will be set to the maximum.numberOfSignificantValueDigits - The number of significant digits in the value.public Timer(int numberOfSignificantValueDigits)
numberOfSignificantValueDigits - The number of significant digits in the value.public Timer(long highestTrackableValue,
int numberOfSignificantValueDigits,
Clock clock,
boolean reportTotalHistogram)
highestTrackableValue - The highest value tracked. Anything larger will be set to the maximum.numberOfSignificantValueDigits - The number of significant digits in the value.clock - The clock.reportTotalHistogram - Should the total histogram (since start) be reported by getSnapshot?public Timer(int numberOfSignificantValueDigits,
Clock clock,
boolean reportTotalHistogram)
numberOfSignificantValueDigits - The number of significant digits in the value.clock - The clock.reportTotalHistogram - Should the total histogram (since start) be reported by getSnapshot?