2 つの時間値の 1 つが System. currentTimeMillis() つまり、それthe difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC
は System.nanoTime() を使用してフェッチされますcurrent value of the running Java Virtual Machine's high-resolution time source, in nanoseconds
。
どうすればいいですか?