做代码备份吧
long t=System.nanoTime();
long t2=System.nanoTime();
System.out.print(t2-t+" 纳秒");
long t3=System.currentTimeMillis();
long t4=System.currentTimeMillis();
System.out.print(t4-t3+" 毫秒");
做代码备份吧
long t=System.nanoTime();
long t2=System.nanoTime();
System.out.print(t2-t+" 纳秒");
long t3=System.currentTimeMillis();
long t4=System.currentTimeMillis();
System.out.print(t4-t3+" 毫秒");