javaadvent.com
How Not to Measure Elapsed Time in Java - JVM Advent
The rabbit hole goes infinitely deep if you want to do latency measurements, benchmarking, and performance testing/tuning/analysis. They are very hard to do right and it is very easy to mess them up. In this post, I would like to show you a very common mistake of latency measurements and a simple solution to fix it.
Jonatan Ivanov