import com.jamonapi.MonKey; import com.jamonapi.Monitor; import com.jamonapi.MonitorFactory; public class MyApp { public static void main(String[] args) { Monitor mon = MonitorFactory.start("MyApp.class", "execution"); // ... mon.stop(); System.out.println("Execution time: " + mon.getAvg() + " ms"); } }


上一篇:
下一篇:
切换中文