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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Dec 28 21:58:15 EST 2011


Author: liuar
Date: 2011-12-28 18:58:14 -0800 (Wed, 28 Dec 2011)
New Revision: 6369

Modified:
   trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp
Log:
unify the getTime unit to millisecond.

Modified: trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp	2011-12-28 10:26:17 UTC (rev 6368)
+++ trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp	2011-12-29 02:58:14 UTC (rev 6369)
@@ -63,7 +63,7 @@
     return count.QuadPart* (1000.0 / frequency.QuadPart);
 #else
     gettimeofday(&count, NULL);
-    return (count.tv_sec * 1000000.0) + count.tv_usec;
+    return (count.tv_sec * 1000.0) + (count.tv_usec / 1000.0);
 #endif
 }
 



More information about the mapguide-commits mailing list