Measure loading time