This method provides nanosecond precision, but not necessarily nanosecond accuracy. No guarantees are made about how frequently values change. Differences in successive calls that span greater than approximately 292 years (263 nanoseconds) will not accurately compute elapsed time due to numerical overflow.
有人可以解釋System.nanoTime()的這種描述嗎?
我不知道這些值是如何不精確和邏輯背後的數值溢出。
喜歡這句話,好像任何人會嘗試運行292年的程序; p – abronan
感謝您的解釋。 – user1071840
http://www.reddit.com/r/programming/comments/mit6j/differences_in_successive_calls_that_span_greater/ –