 
     for (size_t i = 0; i < queues.size(); ++i)
     {
-        Times t;
-        times.push_back(t);
+        Times* t = &times[i];
         QueuePtr q = queues[i];
 
         //threads[i] = thread(measure, &queues[i], &buffer, &times[i], &settings, &barrier);
-        threads[i] = thread([&q, &buffer, &t, &settings, &barrier] {
-            measure(q, buffer, &t, settings, &barrier);
+        threads[i] = thread([&q, &buffer, t, &settings, &barrier] {
+            measure(q, buffer, t, settings, &barrier);
         });
     }
 


    nvm_sq_submit(&queue->sq);

    nvm_cpl_t* cpl;
    while ((cpl = nvm_cq_dequeue(&queue->cq)) == nullptr)
    {
        std::this_thread::yield();
    }

                cudaFree(bufferPtr);
            }
            throw runtime_error("Unable to verify random blocks!");
    }

    free(ptr);
