Measure time performance