Recording start and end time