summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-15 21:21:33 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-15 21:21:33 +0000
commitea4ee8a073be604f7225fac31ccecddf9f8218d3 (patch)
treed964d3eaa8ba5f273f0e722a300f396e85366749 /test
parenta53eb50dcb48cd15931fdc1900e50a546ef59d3e (diff)
Fix repeatability of bench tests.
Diffstat (limited to 'test')
-rw-r--r--test/bench.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bench.cc b/test/bench.cc
index be66f908..de8c4369 100644
--- a/test/bench.cc
+++ b/test/bench.cc
@@ -49,7 +49,7 @@ public:
{
struct timeval stop;
gettimeofday (&stop, 0);
- _total += (stop.tv_sec + stop.tv_usec / 1000000) - (_start.tv_sec + _start.tv_usec / 1000000);
+ _total += (stop.tv_sec + stop.tv_usec / 1e6) - (_start.tv_sec + _start.tv_usec / 1e6);
}
double get ()
@@ -71,7 +71,7 @@ main (int argc, char* argv[])
exit (EXIT_FAILURE);
}
- int const count = 50;
+ int const count = 100;
int const j2k_bandwidth = 100000000;
dcp::Data j2k (boost::filesystem::path (argv[1]) / "thx.j2c");