JStopWatch is a nice timer class for measuring elapsed times. It supports starting, stopping and resuming. However, it can be used for more complicated time measuring, since it supports laps.
JStopWatch
JStopWatch stopWatch = new JStopWatch(); stopWatch.start(); ... stopWatch.lap(); ... stopWatch.stop(); System.out.println(stopWatch);