Interface Timer.Timed

  • All Superinterfaces:
    java.lang.AutoCloseable
    Enclosing interface:
    Timer

    public static interface Timer.Timed
    extends java.lang.AutoCloseable
    A timing sample that carries internal state about the Timer's start position. The timing can be completed by calling stop().
    • Method Detail

      • stop

        void stop()
        Stops the timer and records the total duration up until Timer.start() was called.
      • close

        default void close()
        Specified by:
        close in interface java.lang.AutoCloseable