Maybe you want to run a save-loop run in a seperate function:

Code:
void SaveLoop(var wait_time)
{
	while(1)
	{
		save();
		wait(-wait_time);
	}
}



f.e. call SaveLoop(2); once and save(); gets called every 2 seconds without affecting the rest of your code.


POTATO-MAN saves the day! - Random