Measure execution time and rows affected