C Program

Hi!
I have a doubt with a program I am doing.
I need the program is X seconds in a loop(X is a comand line, that it can vary). But in this time, it have to process instructions and when it comes X seconds it must jump other part of my program.
If the number of instructions grow, the loop will execute less times: only the times to come X seconds.
And if it comes X seconds in the middle of the loop, it must process the instructions and jump.
How I do this??
Sorry for my english!
You should look at the alarm function.
Topic archived. No new replies allowed.