java.util.Date相关

版权声明:如有需要转载,请声明出处 https://blog.csdn.net/hehuang139/article/details/9078561

1、用途:计算一个操作的时间

Long beginTime = System.currentTimeMillis();

operate();

System.out.println("本次操作耗时:" + (System.currentTimeMillis()-beginTime)/1000f + "秒");

未完待续...

猜你喜欢

转载自blog.csdn.net/hehuang139/article/details/9078561