public interface Clock
This should use the most precise value possible. For example,
System.currentTimeMillis() by 1000.
See Instrumenting a service for more.
Note: This type is safe to implement as a lambda, or use as a method reference as it
is effectively a
FunctionalInterface. It isn't annotated as such because the project has
a minimum Java language level 6.
Modifier and Type Method Description