Using new TimeMillis class instead of calls to gettimeofday() and
arithmetics with microseconds, to make the code clearer.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@489 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/x0vncserver/PollingManager.h b/x0vncserver/PollingManager.h
index a56d2e4..797f3f6 100644
--- a/x0vncserver/PollingManager.h
+++ b/x0vncserver/PollingManager.h
@@ -23,13 +23,15 @@
#ifndef __POLLINGMANAGER_H__
#define __POLLINGMANAGER_H__
-#include <sys/time.h>
-
#include <X11/Xlib.h>
#include <rfb/VNCServer.h>
#include <x0vncserver/Image.h>
+#ifdef DEBUG
+#include <x0vncserver/TimeMillis.h>
+#endif
+
using namespace rfb;
class PollingManager {
@@ -103,7 +105,7 @@
void debugBeforePoll();
void debugAfterPoll();
- struct timeval m_timeSaved;
+ TimeMillis m_timeSaved;
#endif
};