Add some very basic timing of the player.
[dcpomatic.git] / src / wx / film_viewer.h
index 972a88a5af2aee7c8ed1ef8a27378a37df5e475b..97da5f59185e8c1b030b0abb2e683c866e8c4ced 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2019 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -25,6 +25,7 @@
 #include "lib/film.h"
 #include "lib/config.h"
 #include "lib/player_text.h"
+#include "lib/timer.h"
 #include <RtAudio.h>
 #include <wx/wx.h>
 
@@ -95,6 +96,14 @@ public:
        }
 #endif
 
+       StateTimer const & state_timer () const {
+               return _state_timer;
+       }
+
+       int gets () const {
+               return _gets;
+       }
+
        boost::signals2::signal<void (boost::weak_ptr<PlayerVideo>)> ImageChanged;
        boost::signals2::signal<void ()> PositionChanged;
        boost::signals2::signal<void (DCPTime)> Started;
@@ -174,5 +183,8 @@ private:
        bool _background_image;
 #endif
 
+       StateTimer _state_timer;
+       int _gets;
+
        boost::signals2::scoped_connection _config_changed_connection;
 };