   numBlocksY = floor(sqroot / threadsPerBlock1dim);
   numBlocksX = floor((double)maxThreads / (threadsPerBlock1dim * threadsPerBlock1dim * numBlocksY));
 
-  if (!quiet)
-    printf("%d <= %d, threadsPerBlock: %dx%d, numBlocksXxnumBlocksY: %dx%d\n",
+  // if (!quiet)
+    printf("Threads used in current run: %d <= %d, threadsPerBlock: %dx%d, numBlocksXxnumBlocksY: %dx%d\n",
       threadsPerBlock1dim * threadsPerBlock1dim * numBlocksX * numBlocksY, maxThreads, threadsPerBlock1dim, threadsPerBlock1dim, numBlocksX, numBlocksY);
+}
+
+double cpuSecond() {
+ struct timeval tp;
+ gettimeofday(&tp,NULL);
+ return ((double)tp.tv_sec + (double)tp.tv_usec*1.e-6);
 }
 
 void generateImage(int width, int height, Offset offset, int maxThreads, const char* filename, bool quiet) {

}

int main(int argc, char** argv) {
  int width = 640, height = 480;
  double lowerX = -2, upperX = 2;
  double lowerY = -2, upperY = 2;

  if (!quiet)
    printf("Thread-%d:%d on block %d:%d started.\n", threadIdx.x, threadIdx.y, blockIdx.x, blockIdx.y);

  double lowerX = offset.lowerX, upperX = offset.upperX;
  double lowerY = offset.lowerY, upperY = offset.upperY;

