java获取当前系统毫秒,纳秒 //获取当前系统毫秒 System.out.println(System.currentTimeMillis()); //获取当前系统纳秒 System.out.println(System.nanoTime());