summaryrefslogtreecommitdiffhomepage
path: root/Timeline.h
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline.h')
-rw-r--r--Timeline.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Timeline.h b/Timeline.h
new file mode 100644
index 0000000..515d2d3
--- /dev/null
+++ b/Timeline.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <ctime>
+
+
+class Timeline
+{
+public:
+ Timeline(std::time_t start, std::time_t end);
+ std::time_t timestamp() const;
+ double current() const;
+ double progress() const;
+ double move(double dt);
+private:
+ const std::time_t m_start;
+ const double m_end;
+ double m_current;
+};