From 5a2cf5a6b123f73b575ed24d7699250a9ef1eefb Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 24 Aug 2011 23:23:09 +1000 Subject: [PATCH] Get start times just before mining begins to not have very slow rise in average. --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 9e025c1c..50790f34 100644 --- a/main.c +++ b/main.c @@ -4467,10 +4467,6 @@ int main (int argc, char *argv[]) sigaction(SIGTERM, &handler, &termhandler); sigaction(SIGINT, &handler, &inthandler); - gettimeofday(&total_tv_start, NULL); - gettimeofday(&total_tv_end, NULL); - get_datestamp(datestamp, &total_tv_start); - // Hack to make cgminer silent when called recursively on WIN32 int skip_to_bench = 0; #if defined(WIN32) @@ -4776,6 +4772,10 @@ int main (int argc, char *argv[]) } } + gettimeofday(&total_tv_start, NULL); + gettimeofday(&total_tv_end, NULL); + get_datestamp(datestamp, &total_tv_start); + #ifdef HAVE_OPENCL /* start GPU mining threads */ for (i = 0; i < nDevs * opt_g_threads; i++) {