[mapguide-commits] r6096 - trunk/MgDev/Common/MapGuideCommon/Util

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Aug 25 06:19:32 EDT 2011


Author: liuar
Date: 2011-08-25 03:19:32 -0700 (Thu, 25 Aug 2011)
New Revision: 6096

Modified:
   trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp
   trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.h
Log:
Wrap the Windows API 
void MgTimerUtil::GetFrequency(LARGE_INTEGER* pFrequency)

Modified: trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp	2011-08-25 07:43:11 UTC (rev 6095)
+++ trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp	2011-08-25 10:19:32 UTC (rev 6096)
@@ -67,6 +67,7 @@
 #endif
 }
 
+#ifdef WIN32
 ///----------------------------------------------------------------------------
 /// <summary>
 /// Invoke the QueryPerformanceFrequency to initialize class member frequency.
@@ -77,4 +78,5 @@
 {
     if(!QueryPerformanceFrequency(pFrequency))
         throw new MgUnclassifiedException(L"MgTimerUtil.GetFrequency", __LINE__, __WFILE__, NULL, L"", NULL);
-}
\ No newline at end of file
+}
+#endif

Modified: trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.h
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.h	2011-08-25 07:43:11 UTC (rev 6095)
+++ trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.h	2011-08-25 10:19:32 UTC (rev 6096)
@@ -67,6 +67,7 @@
 
     /// Helper Methods
 
+#ifdef WIN32
     ///////////////////////////////////////////////////////////////////////////
     /// \brief
     /// Invoke the QueryPerformanceFrequency to initialize frequency.
@@ -75,6 +76,7 @@
     ///
 
     static void GetFrequency(LARGE_INTEGER* pFrequency);
+#endif
 
 private:
 



More information about the mapguide-commits mailing list