diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-16 01:39:11 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-16 01:39:11 +0000 |
commit | 66428e7f5a40e36d0129200dcc53e9459e1d0a9b (patch) | |
tree | 23148c8f9b5f2d20672d6995c920e1d06d442874 /stringsort.c | |
parent | 0a0699aba70c04e3e6c5847b47cee75025e96255 (diff) |
-- Remove getScore functions
-- Replace by making Do* functions return the results directly
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@61 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'stringsort.c')
-rw-r--r-- | stringsort.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/stringsort.c b/stringsort.c index a8ff4f3..28fa155 100644 --- a/stringsort.c +++ b/stringsort.c @@ -48,12 +48,11 @@ static void strsift(unsigned long *optrarray, unsigned long i, unsigned long j); -static double results; - /***************** ** DoStringSort ** *****************/ -void DoStringSort(void) +double +DoStringSort(void) { const char* context = "CPU:String Sort"; unsigned char* array = NULL; @@ -110,7 +109,7 @@ void DoStringSort(void) free(array); - results = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; + return (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; } /************************** @@ -509,9 +508,3 @@ while((i+i)<=j) i=j+1; } } - -double -getStringSortScore(void) -{ - return results; -} |