Add timing recording.