in windows you can include windows.h
then use Sleep(howmanymilliseconds);
now this lets the processor do other things. which is good. even though its not cross platform. ive read of many alternatives many of them using a loop using a wait time or a loop clock and a timer to waste time and all of them were bashed because it was considered really bad to waste cpu cycles.
im not going to get into a debate with anyone. just what ive read.