Searched refs:time2 (Results 1 – 2 of 2) sorted by relevance
47 uint64_t tmp2 = sync->time2[0]; in time_sync_truncate()51 sync->time2[m] = sync->time2[m + 1]; in time_sync_truncate()54 sync->time2[NUM_TIME_SYNC_DATAPOINTS - 1] = tmp2; in time_sync_truncate()60 bool time_sync_add(time_sync_t *sync, uint64_t time1, uint64_t time2) { in time_sync_add() argument64 sync->time2[i] = time2; in time_sync_add()87 bool time_sync_estimate_time1(time_sync_t *sync, uint64_t time2, uint64_t *time1) in time_sync_estimate_time1() argument109 uint64_t time2_base = sync->time2[i]; in time_sync_estimate_time1()120 mean_x += floatFromUint64(sync->time2[ii] - time2_base) * invN; in time_sync_estimate_time1()135 float x = floatFromUint64(sync->time2[ii] - time2_base) - mean_x; in time_sync_estimate_time1()156 …*time1 = sync->time1_base + floatToInt64(sync->alpha + sync->beta * floatFromInt64(time2 - sync->t… in time_sync_estimate_time1()
33 uint64_t time2[NUM_TIME_SYNC_DATAPOINTS]; member50 bool time_sync_add(time_sync_t *sync, uint64_t time1, uint64_t time2);51 bool time_sync_estimate_time1(time_sync_t *sync, uint64_t time2, uint64_t *time1);