Re^2: sleep()ing less than a second

Anders Rolff rolff at mosh.UUCP
Wed Dec 20 22:53:03 AEST 1989


peter at sersun1.essex.ac.uk (Allott P) writes:

>>But what if you want to sleep for less than one second, say, 0.5?

>It is possible to "sleep" for less than one second by doing a
>selcect(.......) with an appropriate value in the timeval (5th param I think)
>and with no channels to check (2nd through 4th params I think).

In SunOS there's a usleep() that sleeps in milliseconds.

--Anders



More information about the Comp.lang.c mailing list