Fix thinko.
authorCarl Hetherington <cth@carlh.net>
Wed, 10 Feb 2016 23:43:34 +0000 (23:43 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 10 Feb 2016 23:43:34 +0000 (23:43 +0000)
jpwtf.cc

index b39017d68377a93f0fc3a395ba4297fa6fff91e0..b0d0f014a97ad45ea1fc3ec8609d005fad1e9d48 100644 (file)
--- a/jpwtf.cc
+++ b/jpwtf.cc
@@ -15,6 +15,7 @@ thread (int iterations)
 {
        int const width = 1998;
        int const height = 1080;
+
        for (int i = 0; i < iterations; ++i) {
                shared_ptr<const dcp::OpenJPEGImage> xyz (new dcp::OpenJPEGImage (dcp::Size (width, height)));
                int32_t* X = xyz->data(0);
@@ -54,5 +55,5 @@ main (int argc, char* argv[])
        struct timeval stop;
        gettimeofday (&stop, 0);
 
-       cout << ((stop.tv_sec + double(start.tv_usec) / 1000000) - (start.tv_sec + double(stop.tv_usec) / 1000000)) << "s\n";
+       cout << ((stop.tv_sec + double(stop.tv_usec) / 1000000) - (start.tv_sec + double(start.tv_usec) / 1000000)) << "s\n";
 }