public final class StopWatch extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
boolean |
isRunning()
Return whether the stop watch is currently running.
|
int |
size()
Return the number of tasks timed.
|
void |
start(String taskName) |
void |
stop() |
com.annimon.stream.function.Supplier<String> |
stringify()
Allows for a deferred conversion to a string.
|
<V> V |
time(String taskName,
Callable<V> callable) |
public StopWatch(String id)
public String getId()
public boolean isRunning()
currentTaskNamepublic int size()
public void start(String taskName)
public void stop()
public com.annimon.stream.function.Supplier<String> stringify()
Copyright © 2000-2017 Sualeh Fatehi. All rights reserved.