Package com.codahale.metrics
Class Timer.Context
- java.lang.Object
-
- com.codahale.metrics.Timer.Context
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- Timer
public static class Timer.Context extends java.lang.Object implements java.io.CloseableA timing context.- See Also:
Timer.time()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longstop()Stops recording the elapsed time, updates the timer and returns the elapsed time in nanoseconds.
-