Add change count to var tab tooltip

This commit is contained in:
Przemek Pawlas
2024-03-02 19:35:07 +01:00
committed by WarmUpTill
parent eec9244e4c
commit 7fa0ba3355
5 changed files with 13 additions and 4 deletions

View File

@@ -113,10 +113,11 @@ void Variable::UpdateLastUsed() const
_lastUsed = std::chrono::high_resolution_clock::now();
}
void Variable::UpdateLastChanged() const
void Variable::UpdateLastChanged()
{
if (_previousValue != _value) {
_lastChanged = std::chrono::high_resolution_clock::now();
++_valueChangeCount;
}
}