public class Measure extends Object
| Modifier and Type | Method and Description |
|---|---|
<V> V |
call(Callable<V> callable)
Measure the invokation time of the given Callable.
|
Measure |
every(Integer iterations)
If provided, the average on a single invokation will be calculated/logged after every n-iterations.
|
static Measure |
measure(String what)
Builds a new Measure object to measure invokations of runnables/callables.
|
void |
run(Runnable runnable)
Measure the invokation time of the given Runnable.
|
public static Measure measure(String what)
public Measure every(Integer iterations)
public void run(Runnable runnable)
Copyright © 2017. All rights reserved.