measuring progress while processing big input file