use sleep function where u want the delay. it provides the delay in miliseconds when used.

For more information refer link:
http://docsrv.sco.com:507/en/man/html.C/sleep.C.html