Class SystemNanoClock

  • All Implemented Interfaces:
    NanoClock

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

      Constructors 
      Constructor Description
      SystemNanoClock()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long nanoTime()
      Returns the system high-resolution time.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()