Browse Source

Reset times after all mining threads are started to make estimating hashrates easier at startup.

Con Kolivas 14 years ago
parent
commit
bca9814d41
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cgminer.c

+ 3 - 0
cgminer.c

@@ -4562,6 +4562,9 @@ int main (int argc, char *argv[])
 		algo_names[opt_algo]);
 		algo_names[opt_algo]);
 #endif
 #endif
 
 
+	gettimeofday(&total_tv_start, NULL);
+	gettimeofday(&total_tv_end, NULL);
+
 	watchpool_thr_id = mining_threads + 3;
 	watchpool_thr_id = mining_threads + 3;
 	thr = &thr_info[watchpool_thr_id];
 	thr = &thr_info[watchpool_thr_id];
 	/* start watchpool thread */
 	/* start watchpool thread */