summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Clock.h')
-rw-r--r--Stars45/Clock.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Stars45/Clock.h b/Stars45/Clock.h
index e82315a..a0b3c4f 100644
--- a/Stars45/Clock.h
+++ b/Stars45/Clock.h
@@ -15,12 +15,22 @@ class Clock
public:
Clock();
+ void Reset();
double Step();
+ double Delta() const;
+ double GuiDelta() const;
+
+ void SetTimeCompression(double compression);
+ double TimeCompression() const;
+
protected:
using inner_clock = std::chrono::high_resolution_clock;
+ inner_clock::time_point m_epoch;
inner_clock::time_point m_point;
double m_compression;
+ double m_delta;
+ double m_gui_delta;
};