MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
ot_cpu.h
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
2 //####//------------------------------------------------------------
3 //####// MAGiC
4 //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5 //####// Departement de Genie Mecanique - UQTR
6 //####//------------------------------------------------------------
7 //####// MAGIC est un projet de recherche de l equipe ERICCA
8 //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9 //####// http://www.uqtr.ca/ericca
10 //####// http://www.uqtr.ca/
11 //####//------------------------------------------------------------
12 //####//------------------------------------------------------------
13 //####//
14 //####// ot_cpu.h
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:54:00 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 #ifndef ot_CPU
23 #define ot_CPU
24 
25 
26 
27 
28 #include <vector>
29 #include <string>
30 
31 class OT_CPU
32 {
33 public:
34  OT_CPU();
35  OT_CPU(OT_CPU &mdd);
36  ~OT_CPU();
37 
38 
39  void initialise(void);
40  double ajouter_etape(std::string nom);
41  int get_nb_etape(void);
42  void get_etape(int num,std::string &nom,double &temps);
43  void get_etape(int num1,int num2,std::string &nom,double &temps);
44  void get_total(int num,double &temps);
45  void get_tabfinal(std::vector<std::string> &tab);
46  void get_tabfinalcompresse(std::vector<std::string> &tab);
47  void get_etape(std::string nom,double &temps);
48  void enregistrer(char* fichier);
49  void affiche(void);
50  void affichecompresser(void);
51 
52 
53 private:
54  std::vector<clock_t> tabcpu;
55  std::vector<std::string> tabnom;
56 
57 
58 };
59 
60 
61 
62 
63 
64 
65 
66 #endif
OT_CPU::tabcpu
std::vector< clock_t > tabcpu
Definition: ot_cpu.h:54
OT_CPU::get_nb_etape
int get_nb_etape(void)
Definition: ot_cpu.cpp:66
OT_CPU
Definition: ot_cpu.h:31
OT_CPU::OT_CPU
OT_CPU()
Definition: ot_cpu.cpp:31
OT_CPU::ajouter_etape
double ajouter_etape(std::string nom)
Definition: ot_cpu.cpp:58
OT_CPU::initialise
void initialise(void)
Definition: ot_cpu.cpp:49
OT_CPU::affichecompresser
void affichecompresser(void)
Definition: ot_cpu.cpp:177
OT_CPU::affiche
void affiche(void)
Definition: ot_cpu.cpp:168
OT_CPU::get_tabfinal
void get_tabfinal(std::vector< std::string > &tab)
Definition: ot_cpu.cpp:107
OT_CPU::get_total
void get_total(int num, double &temps)
Definition: ot_cpu.cpp:99
OT_CPU::get_etape
void get_etape(int num, std::string &nom, double &temps)
Definition: ot_cpu.cpp:71
OT_CPU::tabnom
std::vector< std::string > tabnom
Definition: ot_cpu.h:55
OT_CPU::get_tabfinalcompresse
void get_tabfinalcompresse(std::vector< std::string > &tab)
Definition: ot_cpu.cpp:126
OT_CPU::enregistrer
void enregistrer(char *fichier)
Definition: ot_cpu.cpp:155
OT_CPU::~OT_CPU
~OT_CPU()
Definition: ot_cpu.cpp:44