* Difference clock conversion. * Low level function to Convert a time interval measured in RAW counter units * into bintime. The difference clock allows measuring small intervals much more * reliably than the absolute clock. */
| 854 | * reliably than the absolute clock. |
| 855 | */ |
| 856 | void |
| 857 | ffclock_convert_diff(ffcounter ffdelta, struct bintime *bt) |
| 858 | { |
| 859 | struct fftimehands *ffth; |
| 860 | uint8_t gen; |
| 861 | |
| 862 | /* No locking but check generation has not changed. */ |
| 863 | do { |
| 864 | ffth = fftimehands; |
| 865 | gen = ffth->gen; |
| 866 | ffclock_convert_delta(ffdelta, ffth->cest.period, bt); |
| 867 | } while (gen == 0 || gen != ffth->gen); |
| 868 | } |
| 869 | |
| 870 | /* |
| 871 | * Access to current ffcounter value. |
no test coverage detected