我需要找出两个时间值之间的差异,当使用系统获取其中的一个时间值时。 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
。查找历元与当前时间之间的时差
我该怎么做?
减去它们?我不明白你的问题。 – 2013-12-10 14:58:31
他们是数字...减去他们? –
为什么不减? –