sourcestats: add function to correct accumulated offsets

This will be needed to follow server time corrections in order to
better estimate frequency.
This commit is contained in:
Miroslav Lichvar
2021-11-10 15:34:26 +01:00
parent 0bf39c0ab9
commit 72f7d09f58
2 changed files with 20 additions and 0 deletions

View File

@@ -102,6 +102,10 @@ SST_GetTrackingData(SST_Stats inst, struct timespec *ref_time,
extern void SST_SlewSamples(SST_Stats inst, struct timespec *when, double dfreq, double doffset);
/* This routine corrects already accumulated samples to improve the
frequency estimate when a new sample is accumulated */
extern void SST_CorrectOffset(SST_Stats inst, double doffset);
/* This routine is called when an indeterminate offset is introduced
into the local time. */
extern void SST_AddDispersion(SST_Stats inst, double dispersion);