#include <iostream>
#include <chrono>
#include <thread>
typedef std::chrono::high_resolution_clock Clock;
std::string toString() {
return "String_" + std::to_string(rand() % 100);
}
bool Verbose;
void log(const std::string& S) {
if (Verbose)
return;
}
int main()
{
Verbose = false;
std::chrono::milliseconds three_milliseconds{3};
void *P;
auto t1 = Clock::now();
for (int I = 0; I < 1000000; ++I)
log(toString());
auto t2 = Clock::now();
std::cout << "Delta t2-t1: "
<< std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count()
<< " milliseconds" << std::endl;
std::cout << P;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y2hyb25vPgojaW5jbHVkZSA8dGhyZWFkPgp0eXBlZGVmIHN0ZDo6Y2hyb25vOjpoaWdoX3Jlc29sdXRpb25fY2xvY2sgQ2xvY2s7CgpzdGQ6OnN0cmluZyB0b1N0cmluZygpIHsKICByZXR1cm4gIlN0cmluZ18iICsgc3RkOjp0b19zdHJpbmcocmFuZCgpICUgMTAwKTsKfQoKYm9vbCBWZXJib3NlOwp2b2lkIGxvZyhjb25zdCBzdGQ6OnN0cmluZyYgUykgewogIGlmIChWZXJib3NlKQogICAgcmV0dXJuOwp9CgppbnQgbWFpbigpCnsKICAgIFZlcmJvc2UgPSBmYWxzZTsKICAgIHN0ZDo6Y2hyb25vOjptaWxsaXNlY29uZHMgdGhyZWVfbWlsbGlzZWNvbmRzezN9OwoKICAgIHZvaWQgKlA7CiAgICBhdXRvIHQxID0gQ2xvY2s6Om5vdygpOwogICAgZm9yIChpbnQgSSA9IDA7IEkgPCAxMDAwMDAwOyArK0kpCiAgICAgIGxvZyh0b1N0cmluZygpKTsKICAgIGF1dG8gdDIgPSBDbG9jazo6bm93KCk7CgogICAgc3RkOjpjb3V0IDw8ICJEZWx0YSB0Mi10MTogIiAKICAgICAgICAgICAgICA8PCBzdGQ6OmNocm9ubzo6ZHVyYXRpb25fY2FzdDxzdGQ6OmNocm9ubzo6bWlsbGlzZWNvbmRzPih0MiAtIHQxKS5jb3VudCgpCiAgICAgICAgICAgICAgPDwgIiBtaWxsaXNlY29uZHMiIDw8IHN0ZDo6ZW5kbDsKICAgIHN0ZDo6Y291dCA8PCBQOwp9