Nanotime() is guaranteed monotonic, and has a much higher resolution than currentTimeMillis(). See: http://pzemtsov.github.io/2017/07/23/the-slow-currenttimemillis.html
Nanotime() is guaranteed monotonic, and has a much higher resolution than currentTimeMillis(). See: http://pzemtsov.github.io/2017/07/23/the-slow-currenttimemillis.html