Addition of "System Time" mode where frames are timestamped by

absolute time from the PC clock.
This commit is contained in:
Collin Kidder
2017-07-09 16:54:26 -04:00
parent 8e6883f8f0
commit 8830950f85
13 changed files with 137 additions and 28 deletions
+9
View File
@@ -1,3 +1,4 @@
#include <QSettings>
#include <QThread>
#include "canconnection.h"
@@ -79,6 +80,14 @@ void CANConnection::start()
/* set started flag */
mStarted = true;
QSettings settings;
if (settings.value("Main/TimeClock", false).toBool())
{
useSystemTime = true;
}
else useSystemTime = false;
/* in multithread case, this will be called before entering thread event loop */
return piStarted();
}