Rename and refactor macro class functions

LastConditionCheckTime() will be required to support custom condition
check intervals per macro
This commit is contained in:
WarmUpTill
2024-09-02 19:33:29 +02:00
committed by WarmUpTill
parent 94263cc7a0
commit 9eb4e90291
8 changed files with 38 additions and 42 deletions

View File

@@ -85,9 +85,11 @@ std::string GetMacroName(Macro *macro)
return macro ? macro->Name() : "";
}
int64_t MillisecondsSinceMacroConditionCheck(Macro *macro)
std::chrono::high_resolution_clock::time_point
LastMacroConditionCheckTime(Macro *macro)
{
return macro ? macro->MsSinceLastCheck() : 0;
return macro ? macro->LastConditionCheckTime()
: std::chrono::high_resolution_clock::time_point{};
}
bool MacroIsStopped(Macro *macro)