Changeset 1160 for XIOS/dev/branch_yushan_merged/src/timer.cpp
- Timestamp:
- 06/06/17 19:06:45 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/src/timer.cpp
r1157 r1160 3 3 #include <string> 4 4 #include <map> 5 #include <iostream>6 #include <sstream>7 5 #include "tracer.hpp" 8 6 #include <iostream> … … 71 69 } 72 70 73 string CTimer::getAllCumulatedTime(void)74 {75 if(allTimer_ptr == 0) allTimer_ptr = new std::map<std::string,CTimer>;76 77 std::ostringstream strOut ;78 for(std::map<std::string,CTimer>::iterator it=(*allTimer_ptr).begin();it!=(*allTimer_ptr).end();++it)79 strOut<<"Timer : "<<it->first<<" --> cumulated time : "<<it->second.getCumulatedTime()<<std::endl ;80 return strOut.str() ;81 }82 83 71 }
Note: See TracChangeset
for help on using the changeset viewer.