Ignore:
Timestamp:
10/18/19 14:30:54 (5 years ago)
Author:
ymipsl
Message:

Improve timer and tracing functionnalities

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_ONE_SIDED/src/timer.hpp

    r1158 r1750  
    1313      double lastTime; 
    1414      bool suspended; 
     15      bool isTracing_ ; 
    1516      std::string name; 
    1617 
    17       CTimer(const std::string& name); 
     18      CTimer(const std::string& name, bool trace=true); 
    1819      void suspend(void); 
    1920      void resume(void); 
     
    2223      static std::map<std::string,CTimer> allTimer; 
    2324      static double getTime(void); 
    24       static CTimer& get(std::string name); 
     25      static CTimer& get(std::string name, bool trace=true); 
    2526      static std::string getAllCumulatedTime(void) ; 
    2627  }; 
Note: See TracChangeset for help on using the changeset viewer.