[net.unix-wizards] Results: finer grain sleep

5432dh@homxb.UUCP (David Himber) (08/02/85)

In my results on how to go about getting a finer grain sleep
one of the suggestions involved opening a tty port and setting
~ICANON and setting VMIN=1 and VTIME=n where n is the number
of 1/10th seconds you wanted. I was told that it would wait
for one character, so here is the correct way:
termio.c_lflag &= ~ICANON;
termio.c_cc[VMIN]= 0;
termio.c_cc[VTIME] = n; where n is the number of 1/10th seconds.
David Himber AT&T-BL hotlb!dxh (201)-949-6323