From cd3c163d2abecdacaa6df7382f36b7731167823d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gero=20M=C3=BCller?= Date: Fri, 14 Jan 2011 22:02:14 +0100 Subject: [PATCH] fixed windows time --- src/Time.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Time.cpp b/src/Time.cpp index deab3b4..69e15a6 100644 --- a/src/Time.cpp +++ b/src/Time.cpp @@ -12,7 +12,7 @@ #define MEAN_AND_LEAN #include -static int _hasPerformanceCounter; +static bool _hasPerformanceCounter; static unsigned int _t0_32; static __int64 _t0_64; static double _resolution = 0.0; @@ -26,13 +26,13 @@ static void _init() { if( QueryPerformanceFrequency( (LARGE_INTEGER *)&freq ) ) { // Performance counter is available => use it! - _hasPerformanceCounter = GL_TRUE; + _hasPerformanceCounter = true; // Counter resolution is 1 / counter frequency _resolution = 1.0 / (double)freq; // Set start time for timer - QueryPerformanceCounter( (LARGE_INTEGER *)&__t0_64 ); + QueryPerformanceCounter( (LARGE_INTEGER *)&_t0_64 ); } else {