summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Clock.h
diff options
context:
space:
mode:
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