summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Clock.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-01 23:27:48 +0100
committerAki <please@ignore.pl>2022-03-01 23:27:48 +0100
commit8f65086736ae28e786bb07672fc43b300464494b (patch)
treeb38c86f781482d1d4105088380563342bf9530b0 /Stars45/Clock.h
parentc376af320ebd9d9e435ef3003dd35136dbd71ae8 (diff)
downloadstarshatter-8f65086736ae28e786bb07672fc43b300464494b.zip
starshatter-8f65086736ae28e786bb07672fc43b300464494b.tar.gz
starshatter-8f65086736ae28e786bb07672fc43b300464494b.tar.bz2
Added stub Clock to replace Game built-in
Diffstat (limited to 'Stars45/Clock.h')
-rw-r--r--Stars45/Clock.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Stars45/Clock.h b/Stars45/Clock.h
new file mode 100644
index 0000000..e82315a
--- /dev/null
+++ b/Stars45/Clock.h
@@ -0,0 +1,27 @@
+/* Starshatter: The Open Source Project
+ Copyright (c) 2021-2022, Starshatter: The Open Source Project Contributors
+ Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors
+ Copyright (c) 1997-2006, Destroyer Studios LLC.
+*/
+
+#ifndef Clock_h
+#define Clock_h
+
+#include <chrono>
+
+
+class Clock
+{
+public:
+ Clock();
+
+ double Step();
+
+protected:
+ using inner_clock = std::chrono::high_resolution_clock;
+ inner_clock::time_point m_point;
+ double m_compression;
+};
+
+
+#endif // Clock_h