Some bug fixes, much more work on ISOTP/UDS decoder window.
This commit is contained in:
@@ -12,6 +12,9 @@ class Utility
|
||||
public:
|
||||
|
||||
static bool decimalMode;
|
||||
static bool secondsMode;
|
||||
static bool sysTimeMode;
|
||||
static QString timeFormat;
|
||||
|
||||
static QString unQuote(QString inStr)
|
||||
{
|
||||
@@ -104,6 +107,15 @@ public:
|
||||
return output;
|
||||
}
|
||||
|
||||
static QString formatTimestamp(uint64_t timestamp)
|
||||
{
|
||||
if (!sysTimeMode) {
|
||||
if (!secondsMode) return QString::number(timestamp);
|
||||
else return QString::number((double)timestamp / 1000000.0, 'f', 6);
|
||||
}
|
||||
else return QDateTime::fromMSecsSinceEpoch(timestamp / 1000).toString(timeFormat);
|
||||
}
|
||||
|
||||
//parses the input string to grab as much of it as possible while staying alpha numeric
|
||||
static QString grabAlphaNumeric(QString &input)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user