def METHOD_NAME(progress_bar: progressBar):
    percents = round(
        100.0
        * progress_bar.current_iteration
        / float(progress_bar.range_to_iterate_over),
        1,
    )
    time_str = _construct_timing_string(progress_bar)
    bar = (
        "=" * progress_bar._how_many_blocks_done()
        + "-" * progress_bar._how_many_blocks_left()
    )
    progress_string = "\0\r [%s] %s%s %s %s" % (
        bar,
        percents,
        "%",
        progress_bar.suffix,
        time_str,
    )
    sys.stdout.write(progress_string)
    sys.stdout.flush()