Interface EpochNanoClock

  • All Known Implementing Classes:
    OffsetEpochNanoClock, SystemEpochNanoClock
    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 EpochNanoClock
    Clock representing the time in nanoseconds since 1 Jan 1970 UTC.
    • Method Detail

      • nanoTime

        long nanoTime()
        Time in nanoseconds since 1 Jan 1970 UTC.
        Returns:
        the number of nanoseconds since 1 Jan 1970 UTC.