public interface ApiClock
NanoClock are typically used only for testing.
This interface is required in addition to Java 8's Clock, because nanoTime is required to compare
values with io.grpc.CallOptions.getDeadlineNanoTime().| Modifier and Type | Method and Description |
|---|---|
long |
millisTime()
Returns the current value of this clock's high-resolution time source, in milliseconds.
|
long |
nanoTime()
Returns the current value of this clock's high-resolution time source, in nanoseconds.
|