Java Nanoseconds, nanoTime () method returns the current time in nanoseconds.