New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
timer.hpp in vendors/XIOS/current/src – NEMO

source: vendors/XIOS/current/src/timer.hpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:keywords set to Id
File size: 530 bytes
Line 
1#ifndef __TIMER_HPP__
2#define __TIMER_HPP__
3
4#include <string>
5#include <map>
6
7namespace xios
8{
9  using namespace std ;
10 
11 
12  class CTimer
13  {
14    public :
15   
16    double cumulatedTime ;
17    double lastTime ;
18    bool suspended ;
19    string name ;
20   
21    CTimer(const string& name) ;
22    void suspend(void) ;
23    void resume(void) ;
24    void reset(void) ;
25    double getCumulatedTime(void) ;
26    static map<string,CTimer*> allTimer ;
27    static double getTime(void) ;
28    static CTimer& get(string name) ;
29  } ;
30
31}
32
33
34
35#endif
Note: See TracBrowser for help on using the repository browser.