Java 8 LocalDateTime.now() only giving precision of milliseconds
问题 Is it possible to get microseconds in Java 8? The Java 8 LocalDateTime class has a .getNano() method which is meant to return nanoseconds , but on both Linux(Ubuntu) and OS X (10.11.5) it only returns milliseconds (when I ran it it returned 301000000 which equals 301 milliseconds ) and I really need to be able to get microseconds . I know that it is possible to get nanoseconds (and therefore get microseconds from it) on my computer as the javascript method process.hrtime() returns a precise