[mapguide-commits] r6371 - sandbox/adsk/2.4j/Common/MapGuideCommon/Util

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Dec 29 01:22:00 EST 2011


Author: liuar
Date: 2011-12-28 22:22:00 -0800 (Wed, 28 Dec 2011)
New Revision: 6371

Modified:
   sandbox/adsk/2.4j/Common/MapGuideCommon/Util/TimerUtil.cpp
Log:
unify the getTime unit to millisecond.

Modified: sandbox/adsk/2.4j/Common/MapGuideCommon/Util/TimerUtil.cpp
===================================================================
--- sandbox/adsk/2.4j/Common/MapGuideCommon/Util/TimerUtil.cpp	2011-12-29 05:44:34 UTC (rev 6370)
+++ sandbox/adsk/2.4j/Common/MapGuideCommon/Util/TimerUtil.cpp	2011-12-29 06:22:00 UTC (rev 6371)
@@ -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