diff options
Diffstat (limited to 'lib/testmul.c')
-rw-r--r-- | lib/testmul.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/testmul.c b/lib/testmul.c index f7044d6..ac33cc4 100644 --- a/lib/testmul.c +++ b/lib/testmul.c @@ -1,6 +1,8 @@ /* compute the crossover for recursive and simple multiplication */ #include <stdio.h> +#include <stdlib.h> +#include <string.h> #include <time.h> #include "number.h" #ifndef VARARGS @@ -16,7 +18,7 @@ extern bc_num _one_; /* global variables */ int test_n = 1000; -int test_time = 30 * CLOCKS_PER_SEC; /* 30 seconds */ +long test_time = 30 * CLOCKS_PER_SEC; /* 30 seconds */ /* Other things for number.c. */ int std_only; @@ -149,7 +151,7 @@ int main (int argc, char **argv) if (debug) fprintf (stderr, "Timings are for %d multiplies\n" - "Minimum time is %d seconds\n", test_n, + "Minimum time is %lu seconds\n", test_n, test_time/CLOCKS_PER_SEC); /* Two of the same size */ |