platformstl::performance_counter counter;
counter.start();
mainLogger->debug("1234567890");
counter.stop();
printf("%g seconds our logger\n", ((double)counter.get_microseconds()*(double)1E-6) );

tbb::tick_count t0 = tbb::tick_count::now();
mainLogger->debug("1234567890");
tbb::tick_count t1 = tbb::tick_count::now();
tbb::tick_count::interval_t interval = t1-t0;
printf("%g seconds our logger\n",interval.seconds());

syntax highlighted by Code2HTML, v. 0.9.1