Interface OperationTimer.TimingContext

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    Enclosing interface:
    OperationTimer

    public static interface OperationTimer.TimingContext
    extends java.io.Closeable
    An interface for stopping the timer and returning elapsed time.
    • Method Detail

      • stopTimer

        double stopTimer()
        Stops the timer and returns the elapsed time.
        Returns:
        Elapsed time in seconds.
      • close

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