System.nanoTime() is a completely abstract way of measuring time; it has something to do with the number of CPU cycles since starting up the computer. It is completely unrelated to java.util.Date , which uses the time of an era (the number of milliseconds since 1970).
You can compare two different System.nanoTime() values ββto get very accurate time measurements (theoretically up to 1 nanosecond), but the absolute value, taken by itself, is useless.
source share