当前毫秒数 long start = System.currentTimeMillis() 当前纳秒数 long startNs = System.nanoTime(); 1s = 1000 ms 1ms = 1000000 ns