feat(Core/LFG): Implement dungeon selection cooldown to prevent repeat assignme… (#24916)

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Andrew
2026-02-27 23:55:45 -03:00
committed by GitHub
parent 22078a9de5
commit b14cdea7d2
11 changed files with 215 additions and 6 deletions

View File

@@ -41,6 +41,19 @@ namespace GameTime
/// Uptime
AC_GAME_API Seconds GetUptime();
/// Uptime since a given time point
inline Microseconds Elapsed(TimePoint start)
{
return std::chrono::duration_cast<Microseconds>(Now() - start);
}
/// Check if a duration has elapsed since a given time point
template<class T>
inline bool HasElapsed(TimePoint start, T duration)
{
return (Now() - start) >= duration;
}
/// Update all timers
void UpdateGameTimers();
}