record time to calculate performance