diff options
Diffstat (limited to 'bench.c')
-rw-r--r-- | bench.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -133,6 +133,7 @@ struct compressionParameters //**************************************
static int chunkSize = DEFAULT_CHUNKSIZE;
static int nbIterations = NBLOOPS;
+static int BMK_pause = 0;
void BMK_SetBlocksize(int bsize)
{
@@ -146,6 +147,10 @@ void BMK_SetNbIterations(int nbLoops) DISPLAY("- %i iterations-", nbIterations);
}
+void BMK_SetPause()
+{
+ BMK_pause = 1;
+}
//*********************************************************
// Private functions
@@ -462,6 +467,8 @@ int BMK_benchFile(char** fileNamesTable, int nbFiles, int cLevel) if (nbFiles > 1)
printf("%-16.16s :%10llu ->%10llu (%5.2f%%), %6.1f MB/s , %6.1f MB/s\n", " TOTAL", (long long unsigned int)totals, (long long unsigned int)totalz, (double)totalz/(double)totals*100., (double)totals/totalc/1000., (double)totals/totald/1000.);
+ if (BMK_pause) { printf("press enter...\n"); getchar(); }
+
return 0;
}
|