public final class StopWatch
extends java.lang.Object
| Constructor and Description |
|---|
StopWatch(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
boolean |
isRunning()
Return whether the stop watch is currently running.
|
java.util.function.Supplier<java.lang.String> |
stringify()
Allows for a deferred conversion to a string.
|
<V> V |
time(java.lang.String taskName,
java.util.concurrent.Callable<V> callable) |
public java.lang.String getId()
public boolean isRunning()
currentTaskNamepublic java.util.function.Supplier<java.lang.String> stringify()
public <V> V time(java.lang.String taskName,
java.util.concurrent.Callable<V> callable)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2000-2019 Sualeh Fatehi. All rights reserved.