Measuring run time.