I spent most of the week trying to make a smooth, non-hiccup indicator of progress using a very complex algorithm.
6 . , A) , "" , "" B) 2 , , 2 2 2 .
, .
, , , , . 6 , . , . 4- , , .
f1 (..) + f2 (..) + f3 (..) + f4 (..) + f5 (..) + f6 (..) =
, , , . , , 1 40% , , 40 1% . , for-loop 100 000 , , :
for (int i = 0; i < numItems; i++){
if (i % (numItems / percentageOfTotalForThisStep) == 0) emitProgressEvent();
.. do the actual processing ..
}
, . , , .
, , - , . ( ), , , .
SO- , - . , , . ;)