public static class Summary.Child extends Object
Warning: References to a Child become invalid after using
SimpleCollector.remove(java.lang.String...) or SimpleCollector.clear().
| Modifier and Type | Class and Description |
|---|---|
static class |
Summary.Child.Value |
| Modifier and Type | Method and Description |
|---|---|
Summary.Child.Value |
get()
Get the value of the Summary.
|
void |
observe(double amt)
Observe the given amount.
|
Summary.Timer |
startTimer()
Start a timer to track a duration.
|
<E> E |
time(Callable<E> timeable)
Executes callable code (e.g.
|
double |
time(Runnable timeable)
Executes runnable code (e.g.
|
public double time(Runnable timeable)
timeable - Code that is being timedpublic <E> E time(Callable<E> timeable)
timeable - Code that is being timedpublic void observe(double amt)
public Summary.Timer startTimer()
Call Summary.Timer.observeDuration() at the end of what you want to measure the duration of.
public Summary.Child.Value get()
Warning: The definition of Summary.Child.Value is subject to change.
Copyright © 2019. All rights reserved.