print_loop_progress function

print loop progress