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