long lstart1 = System.currentTimeMillis(); //返回的时间是long 因为用的单位是ms 数量级比较大
//计时的程序
long lend1 = System.currentTimeMillis();
long time = (lend1 - lstart1);
System.out.println(time);
long lstart1 = System.currentTimeMillis(); //返回的时间是long 因为用的单位是ms 数量级比较大
//计时的程序
long lend1 = System.currentTimeMillis();
long time = (lend1 - lstart1);
System.out.println(time);