[time-nuts] New algorithm, better ADEV

Li Ang lllaaa at gmail.com
Wed Jan 14 22:45:10 EST 2015

Tom Van Baak <tvb at ...> writes:

> Just use:
>   ref_delta = ref_curr - ref_prev;
>   sig_delta = sig_curr - sig_prev;
> Not only is it much simpler but it also works in every case (your code 
would fail whenever curr equals prev).
> Here's a test program in case you don't believe me: 
> /tvb

Hi Tom,
  Yes, your way is simpler and reliable since the variables are all 
uint32_t type. Thanks for pointing out the mistake.

More information about the time-nuts mailing list