BITFALL/Assets/Plugins/Polaris - Low Poly Ecosystem/Polaris - Low Poly Terrain .../Runtime/Scripts/Utilities/GDebug.cs

35 lines
680 B
C#
Raw Normal View History

2024-03-05 17:34:41 +08:00
#if GRIFFIN
2023-12-30 17:37:48 +08:00
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();
}
}
}
2024-03-05 17:34:41 +08:00
#endif