long start = System.currentTimeMillis();
long end = System.currentTimeMillis();
System.out.println("花费的时间为:" + (end - start));
java中获取程序运行时间
最新推荐文章于 2024-08-09 03:43:42 发布
long start = System.currentTimeMillis();
long end = System.currentTimeMillis();
System.out.println("花费的时间为:" + (end - start));