Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 1999 11:57:00 +0930 (CST)
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Graham Wheeler <gram@cdsec.com>
Cc:        hackers@FreeBSD.ORG
Subject:   RE: Using select() to implement a delay
Message-ID:  <XFMail.990421115700.doconnor@gsoft.com.au>
In-Reply-To: <199904200921.LAA09941@cdsec.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 20-Apr-99 Graham Wheeler wrote:
>  I am using this both because it gives better resolution than sleep(),
>  and also because it doesn't require the use of SIGALRM, which I am
>  using elsewhere.
What about usleep()?

Although it can return EINTR too, so I suppose you only save about 2 lines of
code :)

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990421115700.doconnor>