summaryrefslogtreecommitdiff
path: root/emfloat.c
diff options
context:
space:
mode:
Diffstat (limited to 'emfloat.c')
-rw-r--r--emfloat.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/emfloat.c b/emfloat.c
index e9388c5..b1c822e 100644
--- a/emfloat.c
+++ b/emfloat.c
@@ -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;
}
/***********************