Interface Timer.Timed

  • All Superinterfaces:
    Enclosing interface:

    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