FreeBSD/sys/kern/kern_tc.c
/*
 * 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.
 */
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.
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 .
void
ffclock_convert_diff(ffcounter ffdelta, struct bintime *bt)
{
	struct fftimehands *ffth;
	uint8_t gen;
	do {
		ffth = fftimehands;
		gen = ffth->gen;
		ffclock_convert_delta(ffdelta, ffth->cest.period, bt);
	} while (gen == 0 || gen != ffth->gen);
}
void ffclock_convert_diff ( ffcounter ffdelta , struct bintime * bt ) { struct fftimehands * ffth ; uint8_t gen ; do { ffth = fftimehands ; gen = ffth -> gen ; ffclock_convert_delta ( ffdelta , ffth -> cest . period , bt ) ; } while ( gen == 0 || gen != ffth -> gen ) ; }
Difference clock conversion.
Difference clock conversion .
/* No locking but check generation has not changed. */