public final class ExecutionStopWatch extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> MeasuredExecutionResult<T> |
runMeasured(Callable<T> callable)
Performs the measured execution returning the result including the time it took to execution
|
static MeasuredExecutionResult |
runMeasured(Runnable r)
Performs the measured execution returning the result including the time it took to execution
|
public static MeasuredExecutionResult runMeasured(Runnable r)
r - the runnable whose execution should be measured.Voidpublic static <T> MeasuredExecutionResult<T> runMeasured(Callable<T> callable)
T - the type of the resultcallable - the callable to be measuredCopyright © 2016 DevCon5 GmbH. All rights reserved.