summaryrefslogtreecommitdiffstats
path: root/vncviewer/DesktopWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer/DesktopWindow.h')
-rw-r--r--vncviewer/DesktopWindow.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/vncviewer/DesktopWindow.h b/vncviewer/DesktopWindow.h
index 11f3dc20..4224699c 100644
--- a/vncviewer/DesktopWindow.h
+++ b/vncviewer/DesktopWindow.h
@@ -22,6 +22,8 @@
#include <map>
+#include <sys/time.h>
+
#include <rfb/Rect.h>
#include <rfb/Pixel.h>
@@ -103,6 +105,8 @@ private:
static void handleScroll(Fl_Widget *wnd, void *data);
static void handleEdgeScroll(void *data);
+ static void handleStatsTimeout(void *data);
+
private:
CConn* cc;
Fl_Scrollbar *hscroll, *vscroll;
@@ -115,6 +119,20 @@ private:
bool firstUpdate;
bool delayedFullscreen;
bool delayedDesktopSize;
+
+ struct statsEntry {
+ unsigned fps;
+ unsigned pps;
+ unsigned bps;
+ };
+ struct statsEntry stats[100];
+
+ struct timeval statsLastTime;
+ unsigned statsLastFrame;
+ unsigned statsLastPixels;
+ unsigned statsLastPosition;
+
+ Surface *statsGraph;
};
#endif