Ignore:
Timestamp:
06/06/17 19:06:45 (7 years ago)
Author:
yushan
Message:

fix bad commit. Back to R1155 branch not merged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan_merged/src/timer.cpp

    r1157 r1160  
    33#include <string> 
    44#include <map> 
    5 #include <iostream> 
    6 #include <sstream> 
    75#include "tracer.hpp" 
    86#include <iostream> 
     
    7169  } 
    7270 
    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  
    8371} 
Note: See TracChangeset for help on using the changeset viewer.