Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-util
Commits
1890ce1f
Commit
1890ce1f
authored
Jul 06, 2016
by
Joseph Mirabel
Committed by
Joseph Mirabel
Sep 14, 2016
Browse files
Add hppBenchmark to output to benchmark journal even without HPP_DEBUG
parent
bddbcb7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/util/timer.hh
View file @
1890ce1f
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment