Onboard clock correction by means of drift prediction