Advertisement

Beginners question....

Started by March 28, 2004 08:18 PM
3 comments, last by Kojo 20 years, 10 months ago
Anyone know of a command for OS X that works like windows''s "sleep(x)"? (or w/e it''s called, i just want to make the console wait for a certain amount of time before continuing)
OS X implements the sleep() system call. It''s declared in unistd.h.
Advertisement
Thank You.

Do you know of any functions that allow you to use fractions of a second?
usleep(), which also in the unistd.h header. If you had looked up sleep()''s manpage on an OS X system, it should have listed usleep() in the "see also" section.
*smacks self in forehead* please forgive my stupidity. Thank You.

This topic is closed to new replies.

Advertisement