{
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);
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";
}