mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Ref T297, calculate ts differences ITimestampObjectList::getTimestampDifferenceMinMaxMean
This commit is contained in:
@@ -49,6 +49,15 @@ namespace BlackMisc
|
||||
//! Time difference in ms
|
||||
qint64 getTimeDifferenceMs(qint64 compareTime) const { return compareTime - this->getMSecsSinceEpoch(); }
|
||||
|
||||
//! Time difference in ms
|
||||
qint64 getTimeDifferenceMs(const ITimestampBased &compare) const { return compare.getMSecsSinceEpoch() - this->getMSecsSinceEpoch(); }
|
||||
|
||||
//! Time difference in ms
|
||||
qint64 getAbsTimeDifferenceMs(qint64 compareTime) const { return qAbs(this->getTimeDifferenceMs(compareTime)); }
|
||||
|
||||
//! Time difference in ms
|
||||
qint64 getAbsTimeDifferenceMs(const ITimestampBased &compare) const { return qAbs(this->getTimeDifferenceMs(compare)); }
|
||||
|
||||
//! Set to null
|
||||
void setTimestampToNull();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user