From owner-freebsd-hackers Thu Jun 27 11:08:46 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA14575 for hackers-outgoing; Thu, 27 Jun 1996 11:08:46 -0700 (PDT) Received: from tombstone.sunrem.com (tombstone.sunrem.com [206.81.134.54]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA14569 for ; Thu, 27 Jun 1996 11:08:40 -0700 (PDT) Received: (from brandon@localhost) by tombstone.sunrem.com (8.6.12/8.6.12) id MAA00433; Thu, 27 Jun 1996 12:08:34 -0600 Date: Thu, 27 Jun 1996 12:08:34 -0600 (MDT) From: Brandon Gillespie To: freebsd-hackers@freebsd.org Subject: portable microsecond sleeps Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk We have a server package that talks to a visa pos port. We run this on a unixware box and on a freebsd box. At one point in the code we need to have a microsecond sleep. BSD has usleep(), however unixware does not (unless you use /usr/ucb/cc, which is EXTREMELY broken and buggy, so its not really an option :) Instead we have tried using select to achieve a microsecond sleep, but when we run this on the unixware system it munches CPU time. Any suggestions for other ways to achieve microsecond sleeps? -Brandon Gillespie