Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site down.FUN
Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!down!honey
From: honey@down.FUN (code 101)
Newsgroups: net.bugs.uucp
Subject: Re: 4.2 uucp performance problems?
Message-ID: <442@down.FUN>
Date: Mon, 11-Feb-85 10:34:09 EST
Article-I.D.: down.442
Posted: Mon Feb 11 10:34:09 1985
Date-Received: Tue, 12-Feb-85 05:45:12 EST
References: <1363@hao.UUCP> <13500001@uicsl.UUCP>
Organization: Princeton University, EECS
Lines: 16
Keywords: nap, 4.2bsd
Summary: nap() for 4.2bsd

/* "sleep" for n clock ticks */
#include 
nap(n)
{
	struct timeval t;

	if (n <= 0 || n > 3000)
		return;	/* unreasonable */
	t.tv_sec = n / 60;
	t.tv_usec = ((n % 60) * 1000000) / 60;
	(void) select(32, 0, 0, 0, &t);
}

this assumes a 60 hz clock.  your mileage may vary.

	peter