For microsoft windows, the Sleep and SleepEx functions provide delays.

In Linux you can use the usleep function.

I don't know any GCC-specific delay command, nor any portable delay command. If you want to make it portable, you might have to roll your own, or use condition compilation to use a different OS delay function depending on the OS used.

For microsoft windows, the Sleep and SleepEx functions provide delays.

In Linux you can use the usleep function.

I don't know any GCC-specific delay command, nor any portable delay command. If you want to make it portable, you might have to roll your own, or use condition compilation to use a different OS delay function depending on the OS used.