ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/diamesh/src/m3d_cpu.cpp
Revision: 283
Committed: Tue Sep 13 21:11:20 2011 UTC (13 years, 8 months ago) by francois
File size: 417 byte(s)
Log Message:
structure de l'écriture

File Contents

# User Rev Content
1 francois 283 #include "gestionversion.h"
2     #include <time.h>
3     #include "m3d_struct.h"
4     extern GEST_MEM *gest;
5     extern long cpu_avant ;
6    
7     #ifndef _BORLANDC_
8     #define CLK_TCK CLOCKS_PER_SEC
9     #endif
10    
11    
12     void m3d_cpu(void)
13     {
14     long cpu_actuel ;
15     double cpu_ecoule ;
16    
17     cpu_actuel = clock() ;
18    
19    
20     cpu_ecoule = (double) (cpu_actuel - cpu_avant)/CLK_TCK ;
21    
22     gest->cpu = cpu_ecoule ;
23     cpu_avant = cpu_actuel ;
24    
25     return ;
26     }