Class Timer.Context
java.lang.Object
com.codahale.metrics.Timer.Context
- All Implemented Interfaces:
Closeable, AutoCloseable
- Enclosing class:
Timer
-
Method Summary
-
Method Details
-
stop
public long stop()Stops recording the elapsed time, updates the timer and returns the elapsed time in nanoseconds. -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-