FreeBSD/contrib/ntp/ntpd/ntp_io.c
/*
 * collect timing information for various processing
 * paths. currently we only pass them on to the file
 * for later processing. this could also do histogram
 * based analysis in other to reduce the load (and skew)
 * dur to the file output
 */
collect timing information for various processing
paths. currently we only pass them on to the file
for later processing. this could also do histogram
based analysis in other to reduce the load (and skew)
dur to the file output
collect timing information for various processing paths . currently we only pass them on to the file for later processing . this could also do histogram based analysis in other to reduce the load ( and skew ) dur to the file output
void
collect_timing(struct recvbuf *rb, const char *tag, int count, l_fp *dts)
{
	char buf[256];
	snprintf(buf, sizeof(buf), "%s %d %s %s",
		 (rb != NULL)
		     ? ((rb->dstadr != NULL)
			    ? stoa(&rb->recv_srcadr)
			    : "-REFCLOCK-")
		     : "-",
		 count, lfptoa(dts, 9), tag);
	record_timing_stats(buf);
}
void collect_timing ( struct recvbuf * rb , const char * tag , int count , l_fp * dts ) { char buf [ 256 ] ; snprintf ( buf , sizeof ( buf ) , " " , ( rb != NULL ) ? ( ( rb -> dstadr != NULL ) ? stoa ( & rb -> recv_srcadr ) : " " ) : " " , count , lfptoa ( dts , 9 ) , tag ) ; record_timing_stats ( buf ) ; }
collect timing information for various processing
 paths.
collect timing information for various processing paths .