[GRASS-dev] G_percent()
Hamish
hamish_b at yahoo.com
Wed Jun 11 22:14:14 EDT 2008
Hi,
just some tips re G_percent()
- put it at the end of the loop not the beginning.
say the iteration takes very long per step. if you put it at the very start it instantly says "3% done" the first time you call it then stalls on 100% done while the last iteration is executed.
- usually you will have to call it a final time after the for loop to get the "100% done" and newline to be printed. This depends on how you write your i++ for loop of course, but typically if you don't the number stalls a 99% without newline.
Hamish
More information about the grass-dev
mailing list