diff --git a/Projects/Server/Timer/Timer.cs b/Projects/Server/Timer/Timer.cs index aedb163cc..69b30ba9c 100644 --- a/Projects/Server/Timer/Timer.cs +++ b/Projects/Server/Timer/Timer.cs @@ -70,6 +70,7 @@ public partial class Timer public TimeSpan Interval { get; set; } public int Index { get; private set; } public int Count { get; private set; } + public int RemainingCount => Count == 0 ? int.MaxValue : Count - Index; public bool Running { get; private set; } public TimerProfile GetProfile() => !Core.Profiling ? null : TimerProfile.Acquire(ToString() ?? "null");