1995-03-06 04:37:23 +00:00
|
|
|
*** samples/speed.c.0 Fri Mar 3 16:38:42 1995
|
|
|
|
--- samples/speed.c Sun Mar 5 18:59:23 1995
|
|
|
|
***************
|
|
|
|
*** 35,40 ****
|
|
|
|
--- 35,44 ----
|
|
|
|
#include <sys/param.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+ #ifdef __STDC__
|
|
|
|
+ #include <time.h>
|
|
|
|
+ #endif
|
|
|
|
+
|
|
|
|
|
|
|
|
#define GAP 10
|
|
|
|
#define ROWS 1
|
1995-02-07 21:58:10 +00:00
|
|
|
***************
|
|
|
|
*** 122,128 ****
|
1995-03-06 04:37:23 +00:00
|
|
|
--- 126,136 ----
|
1995-02-07 21:58:10 +00:00
|
|
|
clock_t clk;
|
|
|
|
|
|
|
|
clk = times(&tm);
|
1995-03-06 04:37:23 +00:00
|
|
|
+ #ifdef __STDC__
|
|
|
|
+ return (double)clk / (double)CLOCKS_PER_SEC;
|
1995-02-07 21:58:10 +00:00
|
|
|
+ #else
|
|
|
|
return (double)clk / (double)HZ;
|
|
|
|
+ #endif
|
|
|
|
#else
|
|
|
|
return 0;
|
|
|
|
#endif
|