From: rnv Date: Fri, 18 Nov 2011 08:36:48 +0000 (+0000) Subject: rnv: prepare SALOME-6.4.0 version for the Win32 platform. X-Git-Tag: V6_4_0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=240291570877de033fd94f8a21641ff1c9669649;p=modules%2Fkernel.git rnv: prepare SALOME-6.4.0 version for the Win32 platform. --- 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<