diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-14 04:13:16 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-14 04:13:16 +0000 |
commit | 1c42c325dafb487fa554dc8b93e05780bd47662c (patch) | |
tree | ae0e29cb4597d8f4b7f9470c0f0a8e7535c70a2e /emfloat.c | |
parent | 70e35dac3ac20a4554bce8b30f236d220e22487e (diff) |
-- Remove stop watch functions from neural.c and emfloat.c
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@27 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
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; } /*********************** |