Interface OperationTimer.TimingContext
- All Superinterfaces:
AutoCloseable, Closeable
- Enclosing interface:
OperationTimer
An interface for stopping the timer and returning elapsed time.
-
Method Summary
-
Method Details
-
stopTimer
double stopTimer()Stops the timer and returns the elapsed time.- Returns:
- Elapsed time in seconds.
-
close
default void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-