Class Timer
java.lang.Object
com.atlassian.plugin.instrumentation.Timer
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
SingleTimer
Wrapper around an
OpTimer that may be safely used even if that class is not present in the class loader.
This wrapper implements Closeable
Note to maintainers: extreme care must be taken to ensure that OpTimer not accessed at runtime if it is
not present.
- Since:
- 4.1
- See Also:
-
Method Details
-
getOpTimer
Retrieve the timer, if instrumentation is present and enabled. -
close
public void close()End the timer, if instrumentation is present and enabled.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-