Commit 1890ce1f authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add hppBenchmark to output to benchmark journal even without HPP_DEBUG

parent bddbcb7f
......@@ -71,10 +71,21 @@ namespace hpp
# define hppDisplayBenchmark(ID) \
hppDout (benchmark, #ID << ": "<< _##ID##_timer_.duration ());
# define hppBenchmark(data) \
do { \
using namespace hpp; \
using namespace ::hpp::debug; \
std::stringstream __ss; \
__ss << data << iendl; \
logging.benchmark.write (__FILE__, __LINE__, __PRETTY_FUNCTION__, \
__ss); \
} while (0)
# else
# define hppStartBenchmark(ID)
# define hppStopBenchmark(ID)
# define hppDisplayBenchmark(ID)
# define hppBenchmark(data)
# endif // HPP_ENABLE_BENCHMARK
class HPP_UTIL_DLLAPI TimeCounter
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment