Is System.currentTimeMillis() the best measure of time performance in Java? Are there any gotcha’s when using this to compare the time before action is taken to the time after the action is taken? Is there a better alternative?
Is System.currentTimeMillis() the best measure of time performance in Java? Are there any gotcha’s
Share
I hope not – it’s what I use when i don’t use
nanoTime().