Ref T397, allow to set adjusted time

This commit is contained in:
Klaus Basan
2018-10-18 23:25:54 +02:00
parent 48d5e0daec
commit 6de663b635

View File

@@ -191,6 +191,9 @@ namespace BlackMisc
//! Timestamp with offset added for interpolation
qint64 getAdjustedMSecsSinceEpoch() const { return this->getMSecsSinceEpoch() + this->getTimeOffsetMs(); }
//! Set timestamp with offset added for interpolation
void setAdjustedMSecsSinceEpoch(qint64 adjustedTimeMs) { this->setMSecsSinceEpoch(adjustedTimeMs - this->getTimeOffsetMs()); }
//! Time difference in ms (this -> compare)
qint64 getAdjustedTimeDifferenceMs(qint64 compareTime) const { return this->getAdjustedMSecsSinceEpoch() - compareTime; }