rgcustodio, I actually misread his post at first too, thinking he wants delays.
but actually he wants his robot to be active for X seconds, then swap to a different task for another Y seconds.
but yea, avrlib should have the timer functions you want . . . and it has some example code, too