Last change
on this file since 5477 was
5477,
checked in by aclsce, 4 years ago
|
- Created CONFIG_DEVT directory
- First import of LMDZOR_V6.2_work_ENSEMBLES working configuration
|
File size:
587 bytes
|
Rev | Line | |
---|
[5477] | 1 | #ifndef __XIOS_TIMER_HPP__ |
---|
| 2 | #define __XIOS_TIMER_HPP__ |
---|
| 3 | |
---|
| 4 | #include <string> |
---|
| 5 | #include <map> |
---|
| 6 | |
---|
| 7 | namespace xios |
---|
| 8 | { |
---|
| 9 | class CTimer |
---|
| 10 | { |
---|
| 11 | public: |
---|
| 12 | double cumulatedTime; |
---|
| 13 | double lastTime; |
---|
| 14 | bool suspended; |
---|
| 15 | std::string name; |
---|
| 16 | |
---|
| 17 | CTimer(const std::string& name); |
---|
| 18 | void suspend(void); |
---|
| 19 | void resume(void); |
---|
| 20 | void reset(void); |
---|
| 21 | double getCumulatedTime(void); |
---|
| 22 | static std::map<std::string,CTimer> allTimer; |
---|
| 23 | static double getTime(void); |
---|
| 24 | static CTimer& get(std::string name); |
---|
| 25 | static std::string getAllCumulatedTime(void) ; |
---|
| 26 | }; |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.