Commit bca9814d419c154dba07703556fba285cff14189

Con Kolivas 2012-02-22T11:50:35

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 58c5157..6f55ba7 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4562,6 +4562,9 @@ int main (int argc, char *argv[])
 		algo_names[opt_algo]);
 #endif
 
+	gettimeofday(&total_tv_start, NULL);
+	gettimeofday(&total_tv_end, NULL);
+
 	watchpool_thr_id = mining_threads + 3;
 	thr = &thr_info[watchpool_thr_id];
 	/* start watchpool thread */