diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-14 21:40:55 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-14 21:40:55 +0000 |
commit | 2b352223b3939e48342fc545ef4a55a97d58cf79 (patch) | |
tree | 73580d2375731f73f92259e961b9b57fb72cb136 /stringsort.c | |
parent | c11b34f0a5ec28f8c66f40054e4eb351cc1d1f05 (diff) |
-- Remove more useless stuff
-- Begin cleaning up structs with consistent naming
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@39 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'stringsort.c')
-rw-r--r-- | stringsort.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/stringsort.c b/stringsort.c index 4cb9a45..f6d214b 100644 --- a/stringsort.c +++ b/stringsort.c @@ -44,12 +44,7 @@ static void strsift(unsigned long *optrarray, /***************** ** DoStringSort ** -****************** -** This routine performs the CPU string sort test. -** Arguments: -** requested_secs = # of seconds to execute test -** stringspersec = # of strings per second sorted (RETURNED) -*/ +*****************/ void DoStringSort(void) { const char* context = "CPU:String Sort"; @@ -58,9 +53,6 @@ void DoStringSort(void) clock_t total_time = 0; int iterations = 0; - /* - ** See if we have to perform self-adjustment code - */ if (strsortstruct->adjust == FALSE) { strsortstruct->adjust = TRUE; /* @@ -110,7 +102,7 @@ void DoStringSort(void) free(arraybase); - strsortstruct->sortspersec = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; + strsortstruct->results = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; } /************************** |