Files
CortexCore 911c184a2a 1
2024-05-17 16:44:15 +08:00

35 lines
680 B
C#

#if GRIFFIN
using System.Diagnostics;
using Debug = UnityEngine.Debug;
namespace Pinwheel.Griffin
{
public static class GDebug
{
private static Stopwatch st = new Stopwatch();
public static void StartStopwatch()
{
st.Start();
}
public static void EndStopwatch()
{
st.Stop();
}
public static void LogStopwatchTimeMilis(string label = "")
{
Debug.Log(label + ": " + st.ElapsedMilliseconds);
st.Reset();
}
public static void LogTick()
{
Debug.Log(st.ElapsedTicks);
st.Reset();
}
}
}
#endif