Interface Timer.Timed

All Superinterfaces:
AutoCloseable
Enclosing interface:
Timer

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

    Fields
    Modifier and Type
    Field
    Description
    static final Timer.Timed
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    void
    Stops the timer and records the total duration up until Timer.start() was called.
  • Field Details

  • Method Details

    • 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 AutoCloseable