统计开始运行时间
//统计开始运行时间
Stopwatch time= Stopwatch.createStarted();
//时间单位需要转换,切换为秒
long elapsed = time.elapsed(TimeUnit.SECONDS);
System.out.println("运行时间---------------"+elapsed);
统计开始运行时间
//统计开始运行时间
Stopwatch time= Stopwatch.createStarted();
//时间单位需要转换,切换为秒
long elapsed = time.elapsed(TimeUnit.SECONDS);
System.out.println("运行时间---------------"+elapsed);