Class Timer


  • public class Timer
    extends AbstractTimer
    Allows easy measurement of elapsed time. All elapsed time reported by this class is by reference to the time of this object's creation.
    • Constructor Detail

      • Timer

        public Timer()
        Creates a new instance of the Timer class.
    • Method Detail

      • getElapsedNanos

        public long getElapsedNanos()
        Description copied from class: AbstractTimer
        Gets the elapsed time, in nanoseconds.
        Specified by:
        getElapsedNanos in class AbstractTimer
        Returns:
        Long indicating elapsed time, in nanoseconds.