com.alicizax.unity.framework/Runtime/Timer/ITimerServiceDebug.cs

28 lines
703 B
C#

namespace AlicizaX.Timer.Runtime
{
internal static class TimerDebugFlags
{
public const byte Running = 1 << 0;
public const byte Loop = 1 << 1;
public const byte Unscaled = 1 << 2;
}
internal struct TimerDebugInfo
{
public ulong TimerHandle;
public float LeftTime;
public float Duration;
public float Age;
public byte Flags;
}
internal interface ITimerServiceDebug
{
int GetAllTimers(TimerDebugInfo[] results);
void GetStatistics(out int activeCount, out int poolCapacity, out int peakActiveCount, out int freeCount);
int GetStaleOneShotTimers(TimerDebugInfo[] results);
}
}