mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
--- 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;
|
|
+ }
|