Class Clock

  • Direct Known Subclasses:
    Clock.UserTimeClock

    public abstract class Clock
    extends Object
    An abstraction for how time passes. It is passed to Timer to track timing.
    • Constructor Detail

      • Clock

        public Clock()
    • Method Detail

      • getTick

        public abstract long getTick()
        Returns the current time tick.
        Returns:
        time tick in nanoseconds
      • getTime

        public long getTime()
        Returns the current time in milliseconds.
        Returns:
        time in milliseconds