Add a delay function to the standard main.c files.