In C, using sleep()
would make the program wait for a short interval of time:
sleep(2000); //or whatever the number (in milliseconds)
But I really don't want to include unistd.h
just to use sleep
, so I'm doing it this way:
for(int i=0; i<=100000000000; i++); // <----- note that the loop doesn't do anything
I do this when I don't really have a specific interval to set for sleep.
Is there anything wrong with this? Would this harm the program in any way?