MCPcopy Create free account
hub / github.com/grpc/grpc-java / Ticker

Class Ticker

api/src/context/java/io/grpc/Deadline.java:269–272  ·  view source on GitHub ↗

Time source representing nanoseconds since fixed but arbitrary point in time. DO NOT use custom Ticker implementations in production, because deadlines created with custom tickers are incompatible with those created with the system ticker. Always use the {@link #getSystemTicker system t

Source from the content-addressed store, hash-verified

267 * @since 1.24.0
268 */
269 public abstract static class Ticker {
270 /** Returns the number of nanoseconds elapsed since this ticker's reference point in time. */
271 public abstract long nanoTime();
272 }
273
274 private static final class SystemTicker extends Ticker {
275 @Override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected