import com.jamonapi.Monitor;
import com.jamonapi.MonitorFactory;
public class ExampleClass {
private Monitor monitor;
public ExampleClass() {
monitor = MonitorFactory.start("ExampleMethod");
}
public void exampleMethod() {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
} finally {
monitor.stop();
}
}
}