当使用 System.Time 获取其中一个时间值时,我需要找到两个时间值之间的差异。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
。
我该怎么做呢?