summaryrefslogtreecommitdiff
path: root/stringsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'stringsort.c')
-rw-r--r--stringsort.c13
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;
-}