Need something better than sleep()
I've been using sleep(1) after requesting data via a serial port because of the slight delay time in receiveing the data. However, now those 1 second delays have accumulated to too much wasted time since I really only need to wait a fraction of a second. If I was only doing one data request it wouldn't bee too bad... but I'm requesting over 5000 data chunks... 5000 seconds is a lot of time...
is there a similar function that takes values less than one second? I know of Sleep() in windows.h, but I'm running the program on a computer with only DOS 6.2. What are my options?
Thanks in advance