- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 Java开发小技巧 - 用“秒表”记时
下面代码可以避免自己用难看的 System.currentMilliseconds 来计算执行时间。org.apache.commons.lang.time.StopWatch StopWatch watch = new StopWatch(); watch.start(); /// some time consuming work watch.stop(); System.out.println("Total time:" + watch.toString());
2010-07-05 22:14:00 891
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人