public class StopWatch
extends java.lang.Object
Constructor and Description |
---|
StopWatch(long periodInMillis) |
StopWatch(long period,
java.util.concurrent.TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
void |
finish() |
static <T> T |
get(long period,
java.util.function.Supplier<T> f) |
static <T> T |
get(long period,
java.util.concurrent.TimeUnit unit,
java.util.function.Supplier<T> f) |
boolean |
isFinished() |