Interface Clock
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A monotonic time source in nanoseconds, so animations and timers can be driven by tests.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
SYSTEM
-
-
Method Details
-
nanos
long nanos()Returns the current time.- Returns:
- nanoseconds from an arbitrary origin
-