Class SystemNanoClock

  • All Implemented Interfaces:
    NanoClock

    public final class SystemNanoClock
    extends Object
    implements NanoClock
    Implementation of the NanoClock interface that returns the system nano time.
    • Constructor Detail

      • SystemNanoClock

        public SystemNanoClock()
    • Method Detail

      • nanoTime

        public long nanoTime()
        Returns the system high-resolution time.
        Specified by:
        nanoTime in interface NanoClock
        Returns:
        the result of calling System.nanoTime()