diff options
Diffstat (limited to 'opentrack-logic/tracklogger.cpp')
-rw-r--r-- | opentrack-logic/tracklogger.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/opentrack-logic/tracklogger.cpp b/opentrack-logic/tracklogger.cpp index c644df16..64dda579 100644 --- a/opentrack-logic/tracklogger.cpp +++ b/opentrack-logic/tracklogger.cpp @@ -3,6 +3,17 @@ TrackLogger::~TrackLogger() {} +void TrackLogger::reset_dt() +{ + t.start(); +} + +void TrackLogger::write_dt() +{ + const double dt = t.elapsed_seconds(); + write(&dt, 1); +} + void TrackLoggerCSV::handle_first_col_sep() { if (!first_col) @@ -32,4 +43,5 @@ void TrackLoggerCSV::next_line() { out << std::endl; first_col = true; -}
\ No newline at end of file +} + |