Delay for a fraction of a second in C

Greg Pasquariello X1190 gpasq at picuxa.UUCP
Fri Nov 4 23:13:07 AEST 1988


In article <2804 at ingr.UUCP> crossgl at ingr.UUCP (Gordon Cross) writes:
>In article <1145 at orion.cf.uci.edu>, echarne at orion.cf.uci.edu (Eli B. Charne) writes:
>> 
>> The Unix sleep command will only go in increments of one second.
>> let me pause (in the Unix operating system) for a fraction of a second.
>
>You are not going to be able to do this without coding up some kind of
>"delay loop" yourself. 
>Gordon Cross
                                                                     
                                                                     
                                                                          
Although kludgy, you could do a read with timeout on some file descriptor as-
sociated with a tty.  See the man pages on read(1) and termio(7).
                                                                       
                                                               
                                                                         
==========================================================================
-- 
=========================================================================
"I crush your head!"		Greg Pasquariello   AT&T PMTC
				att!picuxa!gpasq    Parsippany, NJ
=========================================================================



More information about the Comp.lang.c mailing list