diff options
Diffstat (limited to 'Museum.h')
-rw-r--r-- | Museum.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -21,16 +21,21 @@ public: void set_pause(bool paused); bool get_pause() { return this->paused; } void update(); - void time_jump(long offset); + void skip_forward(); + void skip_backward(); private: bool paused = false; + unsigned long jump = 0; private: - static constexpr std::chrono::milliseconds tick_interval = 15ms; - unsigned long jump = 0; bool working = true; std::thread * worker = nullptr; void work(); + +private: + unsigned long long tick = 0; + static constexpr unsigned snapshot_ticks = 50; + static constexpr std::chrono::milliseconds tick_interval = 15ms; }; |