FreeBSD/contrib/ntp/ntpd/ntp_timer.c
/*
 * intres_timeout_req(s) is invoked in the parent to schedule an idle
 * timeout to fire in s seconds, if not reset earlier by a call to
 * intres_timeout_req(0), which clears any pending timeout.  When the
 * timeout expires, worker_idle_timer_fired() is invoked (again, in the
 * parent).
 *
 * sntp and ntpd each provide implementations adapted to their timers.
 */
intres_timeout_req(s) is invoked in the parent to schedule an idle
timeout to fire in s seconds, if not reset earlier by a call to
intres_timeout_req(0), which clears any pending timeout.  When the
timeout expires, worker_idle_timer_fired() is invoked (again, in the
parent).

sntp and ntpd each provide implementations adapted to their timers.
intres_timeout_req ( s ) is invoked in the parent to schedule an idle timeout to fire in s seconds if not reset earlier by a call to intres_timeout_req ( 0 ) which clears any pending timeout . When the timeout expires worker_idle_timer_fired () is invoked ( again in the parent ) . sntp and ntpd each provide implementations adapted to their timers .
void
intres_timeout_req(
	u_int	seconds		
	)
{
#if defined(HAVE_DROPROOT) && defined(NEED_EARLY_FORK)
	if (droproot) {
		worker_idle_timer = 0;
		return;
	}
#endif
	if (0 == seconds) {
		worker_idle_timer = 0;
		return;
	}
	worker_idle_timer = current_time + seconds;
}
void intres_timeout_req ( u_int seconds ) { #if defined ( HAVE_DROPROOT ) && defined ( NEED_EARLY_FORK ) if ( droproot ) { worker_idle_timer = 0 ; return ; } #endif if ( 0 == seconds ) { worker_idle_timer = 0 ; return ; } worker_idle_timer = current_time + seconds ; }
intres_timeout_req(s) is invoked in the parent to schedule an idle
 timeout to fire in s seconds, if not reset earlier by a call to
 intres_timeout_req(0), which clears any pending timeout.
intres_timeout_req ( s ) is invoked in the parent to schedule an idle timeout to fire in s seconds if not reset earlier by a call to intres_timeout_req ( 0 ) which clears any pending timeout .
/* 0 cancels */