symfony/symfony — pull request #9572 by lsv (2013-11-22 11:21:10+00:00)
Title: [Console][ProgressHelper] Added estimated time and memory usage

see issue #9560

How to use it.

````php
$progress = new ProgressHelper();
$progress->setFormat(ProgressHelper::FORMAT_VERBOSE_NOMAX);
$progress->start($this->output, count($rows));
````

And the output will be something like this

````
3 [>---------------------------] Elapsed: 10 secs Estimated: 6 mins (17.00MB)
````

The estimated is actually quite close to the time it took for my command (it took 5 min and 53 sec) - but of course it requires that all elements take the same time to execute.

The estimated time will be recalculated on each advance() (same time elapsed gets updated)