//// Copyright(c) 2015 Gabi Melman.// Distributed under the MIT License (http://opensource.org/licenses/MIT)//#include <chrono>#include <iostream>#include <memory>#include "plog/Log.h"intmain(int,char*[]){usingnamespacestd::chrono;usingclock=steady_clock;inthowmany=1000000;plog::init(plog::debug,"logs/plog-bench.log");autostart=clock::now();for(inti=0;i<howmany;++i)LOG_INFO<<"plog message #"<<i<<": This is some text for your pleasure";duration<float>delta=clock::now()-start;floatdeltaf=delta.count();autorate=howmany/deltaf;std::cout<<"Total: "<<howmany<<std::endl;std::cout<<"Delta = "<<deltaf<<" seconds"<<std::endl;std::cout<<"Rate = "<<rate<<"/sec"<<std::endl;return0;}