java 的 System.nanoTime() 似乎给出了一个 long: 1337203874231141000L 而 python time.time() 会给出类似 1337203880.462787
如何将 time.time() 的值转换为与 System.nanoTime() 匹配的值?
最佳答案
你不能。
来自documentation :
This method can only be used to measure elapsed time and is not related to any other notion of system or wall-clock time. The value returned represents nanoseconds since some fixed but arbitrary time (perhaps in the future, so values may be negative).
关于java - 将 python time.time() 转换为 java.nanoTime(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10627055/