
rocks.inspectit.agent.java.sdk.opentracing.Timer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agent-java-sdk Show documentation
Show all versions of agent-java-sdk Show documentation
Library to enrich the functionality of Java applications which use the inspectIT agent for monitoring and collection of runtime data.
The newest version!
package rocks.inspectit.agent.java.sdk.opentracing;
/**
* Timer interface for measuring.
*
* @author Ivan Senic
*
*/
public interface Timer {
/**
* Returns current time in microseconds (microseconds since epoch).
*
* @return Returns current time in microseconds (microseconds since epoch).
*/
long getCurrentTimeMicroseconds();
/**
* Returns the current nano time. Simple implementation can use
* {@link java.lang.System#nanoTime()}.
*
* @return Returns the current nano time.
*/
long getCurrentNanoTime();
}