Package org.apache.jackrabbit.oak.stats
Interface TimerStats.Context
- All Superinterfaces:
AutoCloseable,Closeable
- Enclosing interface:
TimerStats
A timing context.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlongstop()Updates the timer with the difference between current and start time.
-
Method Details
-
stop
long stop()Updates the timer with the difference between current and start time. Call to this method will not reset the start time. Multiple calls result in multiple updates.- Returns:
- the elapsed time in nanoseconds
-