mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
Ref T345, fixed value class CInformationMessage
- added property functions - used ITimestampBased
This commit is contained in:
@@ -49,6 +49,9 @@ namespace BlackMisc
|
||||
//! Time difference in ms
|
||||
qint64 getTimeDifferenceMs(qint64 compareTime) const { return compareTime - this->getMSecsSinceEpoch(); }
|
||||
|
||||
//! Time difference to now
|
||||
qint64 getTimeDifferenceToNowMs() const { return this->getTimeDifferenceMs(QDateTime::currentMSecsSinceEpoch()); }
|
||||
|
||||
//! Time difference in ms
|
||||
qint64 getTimeDifferenceMs(const ITimestampBased &compare) const { return compare.getMSecsSinceEpoch() - this->getMSecsSinceEpoch(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user