The following piece of code is used to print the time in the logs:
#define PRINTTIME() struct tm * tmptime; time_t tmpGetTime; time(&tmpGetTime); tm
//C++11 Style:
cout << "Time in Milliseconds =" << chrono::duration_cast(chrono::steady_clock::now().time_since_epoch()).count() << std::endl; cout << "Time in MicroSeconds=" << chrono::duration_cast(chrono::steady_clock::now().time_since_epoch()).count() << std::endl;