Add MacroWasCheckedSinceLastStart()

This commit is contained in:
WarmUpTill 2024-11-01 20:04:39 +01:00 committed by WarmUpTill
parent 37226a3a4c
commit bc0497d2c9
2 changed files with 9 additions and 0 deletions

View File

@ -109,6 +109,14 @@ bool MacroWasPausedSince(
return macro ? macro->WasPausedSince(time) : false;
}
bool MacroWasCheckedSinceLastStart(Macro *macro)
{
return macro ? macro->LastConditionCheckTime()
.time_since_epoch()
.count() != 0
: false;
}
void AddMacroHelperThread(Macro *macro, std::thread &&newThread)
{
if (!macro) {

View File

@ -51,6 +51,7 @@ EXPORT bool MacroIsPaused(Macro *);
EXPORT bool
MacroWasPausedSince(Macro *,
const std::chrono::high_resolution_clock::time_point &);
EXPORT bool MacroWasCheckedSinceLastStart(Macro *);
EXPORT void AddMacroHelperThread(Macro *, std::thread &&);