Addition of "System Time" mode where frames are timestamped by
absolute time from the PC clock.
This commit is contained in:
@@ -400,6 +400,10 @@ void GVRetSerial::procRXChar(unsigned char c)
|
||||
buildFrame.timestamp |= (uint)c << 24;
|
||||
|
||||
buildFrame.timestamp += timeBasis;
|
||||
if (useSystemTime)
|
||||
{
|
||||
buildFrame.timestamp = QDateTime::currentMSecsSinceEpoch() * 1000l;
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
buildFrame.ID = c;
|
||||
|
||||
Reference in New Issue
Block a user