summaryrefslogtreecommitdiffhomepage
path: root/opentrack-logic/tracklogger.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-10 10:37:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-10 10:42:05 +0200
commit9618b30b4e447a767e618d93dbb08c6dd54ef4c7 (patch)
tree42ebbb3104190c3e2e971645e5fe3956ca2fb096 /opentrack-logic/tracklogger.hpp
parent9ca25ef8d49098bba3ab821ea84ef51843a74933 (diff)
logic/track-logger: simplify to output dt
Diffstat (limited to 'opentrack-logic/tracklogger.hpp')
-rw-r--r--opentrack-logic/tracklogger.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/opentrack-logic/tracklogger.hpp b/opentrack-logic/tracklogger.hpp
index 990fc88b..c6c145cf 100644
--- a/opentrack-logic/tracklogger.hpp
+++ b/opentrack-logic/tracklogger.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "main-settings.hpp"
#include "opentrack-compat/options.hpp"
+#include "opentrack-compat/timer.hpp"
#include <fstream>
#include <QString>
@@ -14,6 +15,8 @@ class OPENTRACK_LOGIC_EXPORT TrackLogger
TrackLogger& operator=(const TrackLogger&) = delete;
TrackLogger& operator=(TrackLogger&&) = delete;
+ Timer t;
+
public:
TrackLogger()
{
@@ -37,6 +40,9 @@ public:
{
write(p, 6);
}
+
+ void reset_dt();
+ void write_dt();
};