Showing posts with label nanotime. Show all posts
Showing posts with label nanotime. Show all posts

Wednesday, March 7, 2012

Is System.nanoTime() completely useless?


As documented here , on x86 systems. Java's System.nanoTime() returns the time value using a cpu specific counter. Now consider the following case I use to measure time of a call -