EDIT *Just worked out how to do this (include windows.h, sleep(tired*1), tired measured in miliseconds)* Feel free to close thread.
I've been searching around on google on how to use this. I know i have to #include <unistd.h>, and my source code:
Code:
#include <unistd.h>
#include <stdio.h>
int main(void)
{
printf("I'll be back in 10 seconds...\n\n");
sleep(10);
printf("I'm back!");
getchar();
return(0);
}
The output just prints:
Code:
I'll be back in 10 seconds...
I'm back!
With no interval in between.
Am I using this incorrectly?
Thanks