java 代码运行时间


           long startTime;
33         long endTime;
34         startTime = System.currentTimeMillis();
35       ......
38         endTime = System.currentTimeMillis();
39         long interval = endTime - startTime;
40         System.out.println( interval+" ms");
posted @ 2017-06-08 09:08  Wishmeluck  阅读(89)  评论(0编辑  收藏  举报