Measure time periods for performance test purposes