Measure total running time