Delay for a fraction of a second in C
Knudsen
knudsen at ihlpl.ATT.COM
Tue Nov 8 06:34:04 AEST 1988
In the OS9 operating system, you can sleep for a granularity of
1/10 sec, or on the Color Computers, 1/60 sec.
The C library sleep() only allows 1 sec resolution,
but a general system call lets me get the 16.7 ms resolution
on my Coco. I use it to play MIDI music, so I know it works;
I've *heard* it work.
Moral: Don't confuse what the C Std Library (or any other lib)
gives you with what the underlying OS is really capable of.
Portability? Bring friends. Big strong friends....
--
Mike Knudsen Bell Labs(AT&T) att!ihlpl!knudsen
"Lawyers are like nuclear bombs and PClones. Nobody likes them,
but the other guy's got one, so I better get one too."
More information about the Comp.unix.questions
mailing list