Periodically output progress for values in your C program