Sams Teach Yourself C in 21 Days

(singke) #1
Pausing for a Second or Two 221

you can increase the pause time and then use a stop watch to see how accurate the com-
puter’s pause time is.
You can also modify this listing to print dots (or some other value) for a specified
amount of time rather than pausing for a specified amount of time. Try replacing line 40
with the following:
printf(“x”);

If your operating system has a program named sleep, you may need to give
Caution this program a different name to avoid conflicts.

16 448201x-T&R3 8/13/02 11:16 AM Page 221

Free download pdf