blob: 5673eeaae7299d8743dc1cb3845c59688e649767 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
diff -Naur gamess/source/zunix.c gamess-new/source/zunix.c
--- gamess/source/zunix.c 2005-12-20 22:35:35.000000000 -0600
+++ gamess-new/source/zunix.c 2006-03-27 15:55:13.000000000 -0600
@@ -244,9 +244,9 @@
double etime(float *a)
{ double elapsed;
struct tms buf;
- elapsed= (float) times(&buf)/ (float) CLK_TCK;
- a[0]=(float)(buf.tms_utime + buf.tms_cutime)/CLK_TCK;
- a[1]=(float)(buf.tms_stime + buf.tms_cstime)/CLK_TCK;
+ elapsed= (float) times(&buf)/ (float) CLOCKS_PER_SEC;
+ a[0]=(float)(buf.tms_utime + buf.tms_cutime)/CLOCKS_PER_SEC;
+ a[1]=(float)(buf.tms_stime + buf.tms_cstime)/CLOCKS_PER_SEC;
return(elapsed); }
/*
@@ -301,9 +301,9 @@
double etime(float *a)
{ double elapsed;
struct tms buf;
- elapsed= (float) times(&buf)/ (float) CLK_TCK;
- a[0]=(float)(buf.tms_utime + buf.tms_cutime)/CLK_TCK;
- a[1]=(float)(buf.tms_stime + buf.tms_cstime)/CLK_TCK;
+ elapsed= (float) times(&buf)/ (float) CLOCKS_PER_SEC;
+ a[0]=(float)(buf.tms_utime + buf.tms_cutime)/CLOCKS_PER_SEC;
+ a[1]=(float)(buf.tms_stime + buf.tms_cstime)/CLOCKS_PER_SEC;
return(elapsed); }
#endif
@@ -343,9 +343,9 @@
double etime_(float *a)
{ double elapsed;
struct tms buf;
- elapsed= (float) times(&buf)/CLK_TCK;
- a[0]= (float) (buf.tms_utime + buf.tms_cutime)/CLK_TCK;
- a[1]= (float) (buf.tms_stime + buf.tms_cstime)/CLK_TCK;
+ elapsed= (float) times(&buf)/CLOCKS_PER_SEC;
+ a[0]= (float) (buf.tms_utime + buf.tms_cutime)/CLOCKS_PER_SEC;
+ a[1]= (float) (buf.tms_stime + buf.tms_cstime)/CLOCKS_PER_SEC;
return(elapsed); }
/*
|