Tom Van Baak <tvb@...> 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: http://leapsecond.com/tools/wrap1.c > > /tvb > Hi Tom, Yes, your way is simpler and reliable since the variables are all uint32_t type. Thanks for pointing out the mistake. _______________________________________________ time-nuts mailing list -- [email protected] To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts and follow the instructions there.
