summaryrefslogtreecommitdiffstats
path: root/bench.c
diff options
context:
space:
mode:
Diffstat (limited to 'bench.c')
-rw-r--r--bench.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bench.c b/bench.c
index 015c36e..2758007 100644
--- a/bench.c
+++ b/bench.c
@@ -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;
}