ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/outil/src/ot_cpu.h
Revision: 277
Committed: Wed Jun 15 20:18:31 2011 UTC (13 years, 11 months ago) by francois
Content type: text/plain
File size: 899 byte(s)
Log Message:
ajout d'un module de calcul des temps cpu

File Contents

# User Rev Content
1 francois 277 #ifndef ot_CPU
2     #define ot_CPU
3    
4    
5     #ifdef WINDOWS_VERSION
6     #ifdef BUILT_DLL_OUTIL
7     #define DLLPORTOUTIL __declspec(dllexport)
8     #else
9     #define DLLPORTOUTIL __declspec(dllimport)
10     #endif
11     #else
12     #define DLLPORTOUTIL
13     #endif
14    
15     #include <vector>
16     #include <string>
17    
18     class DLLPORTOUTIL OT_CPU
19     {
20     public:
21     OT_CPU();
22     OT_CPU(OT_CPU &mdd);
23     ~OT_CPU();
24    
25    
26     void initialise(void);
27     int ajouter_etape(std::string nom);
28     int get_nb_etape(void);
29     void get_etape(int num,std::string &nom,double &temps);
30     void get_etape(int num1,int num2,std::string &nom,double &temps);
31     void get_total(int num,double &temps);
32     void get_tabfinal(std::vector<std::string> &tab);
33     void get_tabfinalcompresse(std::vector<std::string> &tab);
34     void get_etape(std::string nom,double &temps);
35     void enregistrer(char* fichier);
36     private:
37     std::vector<clock_t> tabcpu;
38     std::vector<std::string> tabnom;
39    
40    
41     };
42    
43    
44    
45    
46    
47    
48    
49     #endif