#include <boost/progress.hpp>
#include <boost/timer.hpp>
#include <vector>
int main(int argc,char *argv[])
{
const unsigned long expected_count=20;
boost::progress_display show_progress( expected_count );
for(int i=0;i!=expected_count;++i)
{
volatile std::vector<int> v(1024*1024);
++show_progress;
}
return 0;
}
I2luY2x1ZGUgPGJvb3N0L3Byb2dyZXNzLmhwcD4KI2luY2x1ZGUgPGJvb3N0L3RpbWVyLmhwcD4KI2luY2x1ZGUgPHZlY3Rvcj4KCmludCBtYWluKGludCBhcmdjLGNoYXIgKmFyZ3ZbXSkKewogICAgY29uc3QgdW5zaWduZWQgbG9uZyBleHBlY3RlZF9jb3VudD0yMDsKICAgIGJvb3N0Ojpwcm9ncmVzc19kaXNwbGF5IHNob3dfcHJvZ3Jlc3MoIGV4cGVjdGVkX2NvdW50ICk7CiAgICBmb3IoaW50IGk9MDtpIT1leHBlY3RlZF9jb3VudDsrK2kpCiAgICB7CiAgICAgICAgdm9sYXRpbGUgc3RkOjp2ZWN0b3I8aW50PiB2KDEwMjQqMTAyNCk7CiAgICAgICAgKytzaG93X3Byb2dyZXNzOwogICAgfQogICAgcmV0dXJuIDA7Cn0K