测试代码运行时间有何简便方法
- Java code
测试代码运行时间有何简便方法不想每次都在程序开头结尾加入:long sta=System.currentTimeMillis();long end=System.currentTimeMillis();Syso.out.println("run time:"+(end-sta));[解决办法]
Jprofile工具,或者你写个切面对方法进行时间统计咯
发布时间: 2012-03-20 14:01:11 作者: rapoo
测试代码运行时间有何简便方法
测试代码运行时间有何简便方法不想每次都在程序开头结尾加入:long sta=System.currentTimeMillis();long end=System.currentTimeMillis();Syso.out.println("run time:"+(end-sta));