home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!klaava!hurtta
- From: hurtta@cs.Helsinki.FI (Kari E. Hurtta)
- Newsgroups: comp.unix.programmer
- Subject: Re: Programming sub-second delays in C programs.
- Message-ID: <HURTTA.92Sep8210550@plootu.Helsinki.FI>
- Date: 8 Sep 92 19:05:50 GMT
- References: <1992Sep8.155916.1087@mcshub.dcss.mcmaster.ca>
- Sender: news@klaava.Helsinki.FI (Uutis Ankka)
- Organization: Department of Computer Science, University of Helsinki, Finland
- Lines: 20
- In-Reply-To: krasnor@nimios.eng.mcmaster.ca's message of 8 Sep 92 16: 52:12 GMT
-
- In article <1992Sep8.155916.1087@mcshub.dcss.mcmaster.ca> krasnor@nimios.eng.mcmaster.ca (Carl Krasnor) wrote:
- > How does one program a sub-second delay under Unix? What I need is a version
- > of sleep() which can get down to 10 millisecond resolution instead of just
- > whole seconds.
- >
- > I would like to do this both under SunOS and System V.
- >
- > I will summarize to the newsgroup if the response justifies it.
-
- Following system calls are possible:
-
- 1) usleep
- 2) select
- 3) poll
- 4) setitimer
-
- These are wanted resulution timer. (These all are available in
- SunOS): I guess that 3) and perhaps 2) and 4) are in System V.
-
- - K E H "I don't know"
-