c include delay
#include <stdio.h>
#include <time.h>
void delay(int milliseconds) {
long pause;
clock_t now, then;
pause = milliseconds * (CLOCKS_PER_SEC / 1000);
now = then = clock();
while ((now - then) < pause) {
now = clock();
}
}
int main() {
printf("Delay for 2 seconds...\n");
delay(2000); // Delay for 2000 milliseconds (2 seconds)
printf("Delay complete.\n");
return 0;
}