Details |
Letzte Änderung |
Log anzeigen
| RSS feed
| Revision |
Autor |
Zeilennr. |
Zeile |
| 1 |
lars |
1 |
<?php
|
|
|
2 |
require_once 'Console/ProgressBar.php';
|
|
|
3 |
|
|
|
4 |
print "Showing an estimate for the remaining time:\n";
|
|
|
5 |
$bar = new Console_ProgressBar('- %fraction% [%bar%] %percent% ETA: %estimate%', '=>', '-', 78, 345);
|
|
|
6 |
for ($i = 0; $i <= 345; $i++) {
|
|
|
7 |
$bar->update($i);
|
|
|
8 |
usleep(40000);
|
|
|
9 |
}
|
|
|
10 |
print "\n";
|