public class ExecutionStopWatch extends Object
| Modifier and Type | Method and Description |
|---|---|
Duration |
getDuration() |
Optional<Object> |
getResult() |
static ExecutionStopWatch |
measure(Callable c)
Creates a new stop watch for measuring the execution time of a callable
|
static ExecutionStopWatch |
measure(Runnable r)
Creates a new stop watch for measuring the execution time of a runnable.
|
public static ExecutionStopWatch measure(Runnable r)
r - the runnable whose execution time should be measuredpublic static ExecutionStopWatch measure(Callable c)
c - the callable whose execution time should be measuredpublic Duration getDuration()
Copyright © 2016 DevCon5 GmbH. All rights reserved.