Interface OperationTimer.TimingContext

All Superinterfaces:
AutoCloseable, Closeable
Enclosing interface:
OperationTimer

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

    Modifier and Type
    Method
    Description
    default void
     
    double
    Stops the timer and returns the elapsed time.
  • Method Details

    • 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 AutoCloseable
      Specified by:
      close in interface Closeable