@FunctionalInterface public interface TimeProvider
| Modifier and Type | Method and Description |
|---|---|
default long |
currentTime(TimeUnit timeUnit) |
default long |
currentTimeMicros() |
long |
currentTimeMillis() |
default long |
currentTimeNanos() |
long currentTimeMillis()
default long currentTimeMicros()
throws IllegalStateException
IllegalStateExceptiondefault long currentTimeNanos()
throws IllegalStateException
IllegalStateExceptiondefault long currentTime(TimeUnit timeUnit) throws IllegalStateException
IllegalStateExceptionCopyright © 2022. All rights reserved.