Class BlockTimer
- java.lang.Object
-
- org.kairosdb.metrics4j.collectors.helpers.BlockTimer
-
- All Implemented Interfaces:
AutoCloseable
public class BlockTimer extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description BlockTimer(DurationCollector collector, Ticker ticker)
-
-
-
Constructor Detail
-
BlockTimer
public BlockTimer(DurationCollector collector, Ticker ticker)
-
-
Method Detail
-
close
public void close()
Stops timer and reports duration recorded- Specified by:
closein interfaceAutoCloseable
-
-