java's System.nanoTime() seems to give a long: 1337203874231141000L while python time.time() will give something like 1337203880.462787
how can i convert time.time()'s value to something match up to System.nanoTime()?
You can't.
From the 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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With