Quote:
Originally Posted by madshi
undocumented option -progressnumbers now outputs "analyze:" and "process:"
|
Just a little cosmetic thing.
Every new progress percentage is shown in a new line.
It would be great if it updates in the same line instead.
maybe something like this
Code:
... other code ...
cout << "analyze/process: 0%\r";
while(!inputfile.eof()){
if (counter==number) {
counter=0; cout << "analyze/process: "<< getpositioninsource()*100/getfsize() << "%" << "\r";
}
counter++;
... do something ...}
cout << "analyze/process: 100%\n";
... other code ...
with "number" = any multiplier to the size of your readingbuffer for the inputfile
example:
show update of the percentage every 50MB
buffer = 32Kb
--> number = 1600
greets
LTJ