Ref T259, Ref T243 utility functions for timestamp based classes

This commit is contained in:
Klaus Basan
2018-03-10 17:56:53 +01:00
parent ad71a67a44
commit fd7b1e0d9c
4 changed files with 34 additions and 3 deletions

View File

@@ -315,6 +315,11 @@ namespace BlackMisc
return m_timeOffsetMs != 0;
}
void ITimestampWithOffsetBased::addMsecsToOffsetTime(qint64 msToAdd)
{
m_timeOffsetMs += msToAdd;
}
QString ITimestampWithOffsetBased::getTimeOffsetWithUnit() const
{
static const QString os("%1ms");