diff --git a/src/sharedspice.c b/src/sharedspice.c index db278981d..101c9924e 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -1971,8 +1971,7 @@ void SetAnalyse( /* get current time */ perf_timer_get_time(&timenow); - diffsec = timenow.seconds; - diffmillisec = timenow.milliseconds; + timediff(&timenow, &timebefore, &diffsec, &diffmillisec); s = TMALLOC(char, 128); diff --git a/src/winmain.c b/src/winmain.c index b9388c9b6..0d4d44e76 100644 --- a/src/winmain.c +++ b/src/winmain.c @@ -233,8 +233,7 @@ SetAnalyse(char *Analyse, /* in: analysis type */ /* get actual time */ perf_timer_get_time(&timenow); - diffsec = timenow.seconds; - diffmillisec = timenow.milliseconds; + timediff(&timenow, &timebefore, &diffsec, &diffmillisec); OldPercent = DecaPercent; /* output only into hwAnalyse window and if time elapsed is larger than