From 3a865821321bcad84f466f8c4523e1d9e515930a Mon Sep 17 00:00:00 2001 From: Matlo Date: Tue, 2 Sep 2014 16:06:40 +0200 Subject: [PATCH] #279 --- .cproject | 129 ++++++++++++++++++-------------- .settings/language.settings.xml | 22 +++--- core/stats.c | 6 +- 3 files changed, 85 insertions(+), 72 deletions(-) diff --git a/.cproject b/.cproject index fbe1f951..cf962e3c 100644 --- a/.cproject +++ b/.cproject @@ -1,58 +1,71 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml index 2e5e9a63..a36cc939 100644 --- a/.settings/language.settings.xml +++ b/.settings/language.settings.xml @@ -1,11 +1,11 @@ - - - - - - - - - - - + + + + + + + + + + + diff --git a/core/stats.c b/core/stats.c index a481d2d0..63fabcb5 100644 --- a/core/stats.c +++ b/core/stats.c @@ -53,10 +53,10 @@ int stats_get_frequency(int id) tdiff = (tnow.tv_sec * 1000000 + tnow.tv_usec) - (stats[id].tlast.tv_sec * 1000000 + stats[id].tlast.tv_usec); #else - LARGE_INTEGER t1; - QueryPerformanceCounter(&t1); + LARGE_INTEGER tnow; + QueryPerformanceCounter(&tnow); - tdiff = (tnow.QuadPart - tlast.QuadPart) * 1000000 / freq.QuadPart; + tdiff = (tnow.QuadPart - stats[id].tlast.QuadPart) * 1000000 / freq.QuadPart; #endif if(tdiff > STATS_PERIOD)