From ea4ee8a073be604f7225fac31ccecddf9f8218d3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 15 Dec 2015 21:21:33 +0000 Subject: Fix repeatability of bench tests. --- test/bench.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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"); -- cgit v1.2.3