1999-09-22 22:05:24 +00:00
|
|
|
--- INSTALL/Makefile~ Mon Mar 1 21:53:16 1999
|
|
|
|
+++ INSTALL/Makefile Tue Sep 21 17:55:59 1999
|
|
|
|
@@ -11,11 +11,11 @@
|
|
|
|
testdlamch: dlamch.o lsame.o dlamchtst.o
|
|
|
|
$(LOADER) $(LOADOPTS) -o testdlamch dlamch.o lsame.o dlamchtst.o
|
|
|
|
|
|
|
|
-testsecond: second.o secondtst.o
|
|
|
|
- $(LOADER) $(LOADOPTS) -o testsecond second.o secondtst.o
|
|
|
|
+testsecond: second.o secondtst.o etime_.o
|
|
|
|
+ $(LOADER) $(LOADOPTS) -o testsecond second.o secondtst.o etime_.o
|
|
|
|
|
|
|
|
-testdsecnd: dsecnd.o dsecndtst.o
|
|
|
|
- $(LOADER) $(LOADOPTS) -o testdsecnd dsecnd.o dsecndtst.o
|
|
|
|
+testdsecnd: dsecnd.o dsecndtst.o etime_.o
|
|
|
|
+ $(LOADER) $(LOADOPTS) -o testdsecnd dsecnd.o dsecndtst.o etime_.o
|
|
|
|
|
|
|
|
testieee: tstiee.o
|
|
|
|
$(LOADER) $(LOADOPTS) -o testieee tstiee.o
|
1996-06-07 15:39:54 +00:00
|
|
|
*** /dev/null Sun Jul 2 04:00:02 1995
|
|
|
|
--- INSTALL/etime_.c Mon Jul 3 00:47:16 1995
|
|
|
|
***************
|
|
|
|
*** 0 ****
|
|
|
|
--- 1,15 ----
|
|
|
|
+ #include <sys/types.h>
|
|
|
|
+ #include <sys/time.h>
|
|
|
|
+ #include <sys/resource.h>
|
|
|
|
+
|
|
|
|
+ float
|
|
|
|
+ etime_ (float *a)
|
|
|
|
+ {
|
|
|
|
+ struct rusage r;
|
|
|
|
+ float f;
|
|
|
|
+
|
|
|
|
+ getrusage(RUSAGE_SELF, &r);
|
|
|
|
+ f = r.ru_utime.tv_sec + (float) r.ru_utime.tv_usec/1000000;
|
|
|
|
+ *a = f;
|
|
|
|
+ return f;
|
|
|
|
+ }
|