두 시간 값 중 하나가 시스템을 사용하여 가져온 경우 두 시간 값의 차이를 찾아야합니다. currentTimeMillis() 즉 the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC
이고 다른 하나는 current value of the running Java Virtual Machine's high-resolution time source, in nanoseconds
을 의미하는 System.nanoTime()을 사용하여 가져옵니다.에포크와 현재 시간의 시간차 찾기
어떻게하면됩니까?
빼기? 나는 당신의 질문을 이해하지 못합니다. –
숫자입니다. 숫자를 뺍니다. –
왜 빼기? –