Class SystemClock

  • All Implemented Interfaces:
    Clock

    class SystemClock
    extends java.lang.Object
    implements Clock
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemClock()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCurrentTime()
      Returns the current time, expressed as the number of milliseconds since the epoch.
      • Methods inherited from class java.lang.Object

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

      • SystemClock

        SystemClock()
    • Method Detail

      • getCurrentTime

        public long getCurrentTime()
        Description copied from interface: Clock
        Returns the current time, expressed as the number of milliseconds since the epoch.
        Specified by:
        getCurrentTime in interface Clock
        Returns:
        current time