想知道这个代码道理会运行多久,之前用过matlab它可以很方便的一键统计,Eclipse可以吗?还是只能getsystemtime自己处理了?
认证0级讲师
Use log, you can calculate the specific running time through log code, of course System.currentTimeMillis().
System.currentTimeMillis()
Shouldn’t counting code running time be done at the code level? I don’t know if Eclipse has this function, but I’ve never seen it.
用JUnit的测试用例啊,通过添加注解,可以测试程序的执行时间,非常方便的。
Use log, you can calculate the specific running time through log code, of course
System.currentTimeMillis()
.Shouldn’t counting code running time be done at the code level? I don’t know if Eclipse has this function, but I’ve never seen it.