projects/lcdd/trunk/include/lcdd/util
--- projects/lcdd/trunk/include/lcdd/util/TimeUtil.hh 2014-05-08 21:16:41 UTC (rev 3112)
+++ projects/lcdd/trunk/include/lcdd/util/TimeUtil.hh 2014-05-08 21:42:53 UTC (rev 3113)
@@ -5,6 +5,7 @@
#include <string>
#include <map>
+#include <iostream>
class TimeUtil {
@@ -43,6 +44,10 @@
return _timerMap[name];
}
+ static void printOut(const std::string& name, std::ostream& os) {
+ os << name << ": " << _timerMap[name] << std::endl;
+ }
+
static void clearTimers() {
_timerMap.clear();
}