Added two modes - millisecond timestamps for frames and a way to

ignore colors set in DBC files
This commit is contained in:
Collin Kidder
2022-01-19 21:34:49 -05:00
parent a8f4a51131
commit c4a9f99445
8 changed files with 92 additions and 13 deletions
+6 -1
View File
@@ -16,6 +16,7 @@ public:
static bool decimalMode;
static bool secondsMode;
static bool millisMode;
static bool sysTimeMode;
static QString timeFormat;
@@ -148,8 +149,12 @@ public:
static QVariant formatTimestamp(uint64_t timestamp)
{
if (!sysTimeMode) {
if (millisMode) return (double)timestamp / 1000.0;
if (!secondsMode) return (unsigned long long)(timestamp);
else return (double)timestamp / 1000000.0;
else
{
return (double)timestamp / 1000000.0;
}
}
else return QDateTime::fromMSecsSinceEpoch(timestamp / 1000);
}