Printing over the same line

In reply to Ajeetha Kumari CVC:

If you are interactively running the simulation, you may want to use a watch window of your simulators GUI to display the percentage, rather than printing it to the log. Otherwise, I recommend using the modulo operator (%) to print progress at some fixed interval.

if ((count % 1000) == 0 ) print a message.