CogwheelUnity/Cogwheel/Library/PackageCache/com.unity.performance.profile-analyzer@1.2.2/Editor/ThreadFrameTime.cs
Spudnut2000 86e8b2168c Init
2024-10-01 23:23:13 -05:00

25 lines
553 B
C#

using System;
namespace UnityEditor.Performance.ProfileAnalyzer
{
[Serializable]
internal struct ThreadFrameTime : IComparable<ThreadFrameTime>
{
public int frameIndex;
public float ms;
public float msIdle;
public ThreadFrameTime(int index, float msTime, float msTimeIdle)
{
frameIndex = index;
ms = msTime;
msIdle = msTimeIdle;
}
public int CompareTo(ThreadFrameTime other)
{
return ms.CompareTo(other.ms);
}
}
}