Java - Measuring process times

Solution: