From 240291570877de033fd94f8a21641ff1c9669649 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 18 Nov 2011 08:36:48 +0000 Subject: [PATCH] rnv: prepare SALOME-6.4.0 version for the Win32 platform. --- src/Basics/Basics_Utils.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Basics/Basics_Utils.hxx b/src/Basics/Basics_Utils.hxx index 94991fd81..97e6a51f8 100644 --- a/src/Basics/Basics_Utils.hxx +++ b/src/Basics/Basics_Utils.hxx @@ -34,6 +34,7 @@ #else #include #include +#pragma comment(lib,"winmm.lib") #endif @@ -81,12 +82,11 @@ namespace Kernel_Utils name##tcount=0;name##cumul=0;} #else -#define START_TIMING(name) static long name##tcount=0;static long name##cumul;long name##tt0; SYSTEMTIME name##tv; GetSystemTime(&name##tv); \ - name##tt0=name##tv.wMilliseconds + name##tv.wSecond*1000; \ +#define START_TIMING(name) static long name##tcount=0;static DWORD name##cumul;DWORD name##tv;DWORD name##tt0 = timeGetTime(); \ if(name##tcount==0)std::cerr<<__FILE__<<":"<<__LINE__<<":"<<#name<