java测试运行时间方法

long startTime=System.currentTimeMillis();
long endTime=System.currentTimeMillis();            //此方法可以保存当前程序运行到当前位置所用的时间

猜你喜欢

转载自blog.csdn.net/qq_33366098/article/details/79965799