Move link start and end measurement update to own function