Revision: 41762
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41762&view=rev
Author:   davidloman
Date:     2010-12-22 13:58:52 +0000 (Wed, 22 Dec 2010)

Log Message:
-----------
Use the Logger::getCurrentTime() fn instead of locally calculating it.

Modified Paths:
--------------
    rt^3/trunk/src/GS/GSClient.cxx

Modified: rt^3/trunk/src/GS/GSClient.cxx
===================================================================
--- rt^3/trunk/src/GS/GSClient.cxx      2010-12-22 13:56:31 UTC (rev 41761)
+++ rt^3/trunk/src/GS/GSClient.cxx      2010-12-22 13:58:52 UTC (rev 41762)
@@ -22,8 +22,6 @@
  *
  */
 
-#include <sys/time.h>
-
 #include "GSClient.h"
 #include "NetMsgRouter.h"
 
@@ -120,11 +118,9 @@
                        PongMsg* pongMsg = (PongMsg*)msg;
 
                        /* calc current and differential times */
-                       quint32 start = pongMsg->getStartTime();
-                       timeval tim;
-                       gettimeofday(&tim, NULL);
-                       quint32 now=(tim.tv_sec * 1000 ) + (tim.tv_usec/1000);
-                       quint32 diff = now -start;
+                       quint64 start = pongMsg->getStartTime();
+                       quint64 now = Logger::getCurrentTime();
+                       quint64 diff = now -start;
 
                        log->logINFO("GSClient", "Start: " + 
QString::number(start) +
                                        ", now: " + QString::number(now) +


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to