public final class MetricsUtil extends Object
Modifier and Type | Method and Description |
---|---|
static com.codahale.metrics.Timer.Context |
startTimer(com.codahale.metrics.Timer timer)
Starts the Metric Timer.
|
static void |
stopTimer(com.codahale.metrics.Timer.Context context)
Stops the Metric Timer context.
|
public static com.codahale.metrics.Timer.Context startTimer(com.codahale.metrics.Timer timer)
If the given timer was null, it will silently return null.
timer
- timer to startpublic static void stopTimer(com.codahale.metrics.Timer.Context context)
If the given context was null, it will silently be ignored.
context
- timing context to stop, if not null.