1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/math/lapack/files/patch-ab

39 lines
1.1 KiB
Plaintext
Raw Normal View History

--- 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
*** /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;
+ }