@FunctionalInterface
public interface TimeSource
The main purpose of this interface is to allow tests to control time arbitrarily (as opposed to using system time and sleep()'ing to advance time.
Modifier and Type | Method and Description |
---|---|
long |
getTimeMillis()
The current "time" in milliseconds
|