Function to repeat command every few secs.

Hi All,

I need your support, my project in details that i made 2 Pcs talk to each others i made it but the problem is that the instructor want the function time to get in this program which means that he want the world hi to be repeated every 5 seconds and the time is written beside it , i made the program but can't find the time and the loop function that repeat the command every certain times so please can anyone support me with the function time .h . by the way i created this program using turbo C

Waiting your support urgent
You may include windows.h and use the function Sleep(unsigned miliseconds)
Note : One second = 1000 ms

If you are using WinAPI, then using SetTimer() - WM_TIMER is better.
Topic archived. No new replies allowed.