Class SystemMillisClock

  • All Implemented Interfaces:
    Clock

    public final class SystemMillisClock
    extends java.lang.Object
    implements Clock
    Implementation of the Clock interface that returns the system time in millisecond granularity.
    Since:
    2.11
    • Method Summary

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

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

      • SystemMillisClock

        public SystemMillisClock()
    • Method Detail

      • currentTimeMillis

        public long currentTimeMillis()
        Returns the system time.
        Specified by:
        currentTimeMillis in interface Clock
        Returns:
        the result of calling System.currentTimeMillis()