Log start and end time