Class SystemMillisClock

  • All Implemented Interfaces:
    Clock

    public final class SystemMillisClock
    extends Object
    implements Clock
    Implementation of the Clock interface that returns the system time in millisecond granularity.
    Since:
    2.11
    • 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()