Measure time for reading data.