Come on folks ..... there is always a limit to the troubles before one just gives up on them and then the troubles are over, due to lack of interest.
do
{
if ( iTroubles > 0 )
iTroubles++;
}
while ((iTroubles < iTroubleThreshould) && (iTroubles != 0));
EDIT: Please note: there is no such thing as a partial trouble, so it has always to be an integer value.
And if your troubles are an integer value, and we know that integers compute faster, we also know that because of this your troubles are over much faster.
Now who is going to fix it up with a while, rather than a do/while and make it go faster again......
Bugger I better do it...
while ((iTroubles < iTroubleThreshould) && (iTroubles > 0))
iTroubles++;