This is a little question, but it bothers me that I can't figure out what's going on. Here is the code in question:
print "\nStage 1 of 3: Processing employee data... ";
retrieve_employee_data();
print "finished.\nStage 2 of 3: Processing punch data... ";
retrieve_punch_data();
print "finished.\nStage 3 of 3: Creating output... ";
output_db();
print "finished.\n\nProgram execution complete.\n";
When I run this, the program prints the first line: "Stage 1 of 3...", then prints "finished" and newlines, then it pauses flashing (presumably while it runs
retrieve_punch_data()) and doesn't print "Stage 2 of 3..." until after it finishes. What's going on?