Try to handle unexpected backward time jumps

This commit is contained in:
Miroslav Lichvar
2011-06-10 18:29:41 +02:00
parent 4ba3dd66ad
commit 91749ebb2b
3 changed files with 68 additions and 7 deletions

View File

@@ -151,6 +151,11 @@ extern void LCL_AccumulateOffset(double offset);
extern void LCL_ApplyStepOffset(double offset);
/* Routine to invoke notify handlers on an unexpected time jump
in system clock */
extern void LCL_NotifyExternalTimeStep(struct timeval *raw, struct timeval *cooked,
double offset, double dispersion);
/* Perform the combination of modifying the frequency and applying
a slew, in one easy step */
extern void LCL_AccumulateFrequencyAndOffset(double dfreq, double doffset);