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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Dec 20 21:02:18 EST 2011


Author: liuar
Date: 2011-12-20 18:02:18 -0800 (Tue, 20 Dec 2011)
New Revision: 6350

Modified:
   trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp
Log:
correct the unit conversion between second and microsecond in linux.

Modified: trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp
===================================================================
--- trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp	2011-12-20 15:07:59 UTC (rev 6349)
+++ trunk/MgDev/Common/MapGuideCommon/Util/TimerUtil.cpp	2011-12-21 02:02:18 UTC (rev 6350)
@@ -63,7 +63,7 @@
     return count.QuadPart* (1000.0 / frequency.QuadPart);
 #else
     gettimeofday(&count, NULL);
-    return (count.tv_sec * 1000.0) + count.tv_usec;
+    return (count.tv_sec * 1000000.0) + count.tv_usec;
 #endif
 }
 



More information about the mapguide-commits mailing list