My code is as follows:
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <windows.h>
int main()
{
printf("test");
usleep(1000000);
printf("test");
return 0;
}
I am being told "error: 'usleep' was not declared in this scope". I am using the c free compiler if that makes a difference and am completely unsure of why this code is not compiling as all needed libraries are included.