/** Simple unit test **/ public static void main(String[] notUsed) { ProfilerImpl p = new ProfilerImpl(); try { p.beginItem("first item"); Thread.sleep(3000); p.beginItem("second item here dude whoa yowser yowser"); Thread.sleep(1500); p.endItem(); p.endItem(); System.out.println("" + p); } catch (Exception e) { } } }
/** Simple unit test **/ public static void main(String[] notUsed) { ProfilerImpl p = new ProfilerImpl(); try { p.beginItem("first item"); Thread.sleep(3000); p.beginItem("second item here dude whoa yowser yowser"); Thread.sleep(1500); p.endItem(); p.endItem(); System.out.println("" + p); } catch (Exception e) { } } }
/** Simple unit test **/ public static void main(String[] notUsed) { ProfilerImpl p = new ProfilerImpl(); try { p.beginItem("first item"); Thread.sleep(3000); p.beginItem("second item here dude whoa yowser yowser"); Thread.sleep(1500); p.endItem(); p.endItem(); System.out.println("" + p); } catch (Exception e) { } } }