This is nothing great, just one of my little helpers. It may take a lot of time to make a high resolution output image of say 6000×6000 pixels with anti-aliasing and cubic interpolation. Then we need some information on the computers progress as I mentioned in “fractals in high resolution“. To simplify this I built the class ProgressReport. You get its code in the next post.
The constructor takes as one argument an integer number e that defines the end of the task and a string, that will be printed in the reports. To begin a task we call the method “reset()”. Later we use “report(j)”, where j is an integer going from zero to e as the task progresses. Then we get every 2 seconds a message saying how much has been done and estimating the remaining time.