Commit in projects/lcdd/trunk/include/lcdd/util on MAIN | |||
TimeUtil.hh | +5 | 3112 -> 3113 |
Add printOut function.
--- 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(); }
Use REPLY-ALL to reply to list
To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1