$total = 100;
$progress = new ProgressBar($textWriter, $total);
for ($i = 0; $i < $total; $i++) {
$progress->incr();
usleep(10000);
}
$progress->stop();
$total = 100;
$progress = new ProgressBar($textWriter, $total);
for ($i = 0; $i < $total; $i++) {
$progress->incr();
usleep(10000);
}
$progress->stop();