mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-04 22:46:00 +01:00
We previously attempted to adjust the output time stamp according to the sample rate and placement of the samples within the USB transfer data, but the end result was a fixed time offset with respect to the time of USB transfer completion. We are using only those samples closest to the end of the transfer, so it makes sense to simply use the time the USB transfer ends and not try to correct that fixed offset. It may be possible in the future to have a more accurate time stamp generated in firmware, but I don't think it is worth complicating the host code with minor time adjustments until and unless firmware-based time stamps become available.