diff options
Diffstat (limited to 'emfloat.c')
-rw-r--r-- | emfloat.c | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -26,6 +26,7 @@ #include <stdio.h> #include <string.h> +#include <time.h> #include "nmglobal.h" #include "emfloat.h" @@ -93,16 +94,11 @@ unsigned long DoEmFloatIteration(InternalFPF *abase, InternalFPF *cbase, unsigned long arraysize, unsigned long loops) { -unsigned long elapsed; /* For the stopwatch */ + clock_t start, stop; static unsigned char jtable[16] = {0,0,0,0,1,1,1,1,2,2,2,2,2,3,3,3}; unsigned long i; -#ifdef DEBUG -int number_of_loops; -#endif -/* -** Begin timing -*/ -elapsed=StartStopwatch(); + + start = clock(); /* ** Each pass through the array performs operations in @@ -137,7 +133,10 @@ while(loops--) break; } } - return(StopStopwatch(elapsed)); + + stop = clock(); + + return stop - start; } /*********************** |