mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-20 08:15:46 -05:00
Add MacroWasPausedSince()
It will allow you to query if the macro was paused since a given time point. It checks this by comparing the time point against the time point at which the macro was last paused.
This commit is contained in:
@@ -100,6 +100,13 @@ bool MacroIsPaused(Macro *macro)
|
||||
return macro ? macro->Paused() : true;
|
||||
}
|
||||
|
||||
bool MacroWasPausedSince(
|
||||
Macro *macro,
|
||||
const std::chrono::high_resolution_clock::time_point &time)
|
||||
{
|
||||
return macro ? macro->WasPausedSince(time) : false;
|
||||
}
|
||||
|
||||
void AddMacroHelperThread(Macro *macro, std::thread &&newThread)
|
||||
{
|
||||
if (!macro) {
|
||||
|
||||
Reference in New Issue
Block a user