Interface EpochClock

  • All Known Implementing Classes:
    CachedEpochClock, SystemEpochClock
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface EpochClock
    Retrieves the number of milliseconds since 1 Jan 1970 UTC.
    • Method Detail

      • time

        long time()
        Time in milliseconds since 1 Jan 1970 UTC.
        Returns:
        the number of milliseconds since 1 Jan 1970 UTC.
        See Also:
        System.currentTimeMillis()