Class Clock.Default

  • All Implemented Interfaces:
    Clock
    Enclosing interface:
    Clock

    public static class Clock.Default
    extends java.lang.Object
    implements Clock
    • Constructor Summary

      Constructors 
      Constructor Description
      Default()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long currentTimeMillis()
      System.currentTimeMillis()
      long nanoTime()
      System.nanoTime()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Default

        public Default()
    • Method Detail

      • nanoTime

        public long nanoTime()
        System.nanoTime()
        Specified by:
        nanoTime in interface Clock
      • currentTimeMillis

        public long currentTimeMillis()
        System.currentTimeMillis()
        Specified by:
        currentTimeMillis in interface Clock