Files
SpaceDroid/My project/Library/PackageCache/com.unity.performance.profile-analyzer/Editor/ThreadFrameTime.cs

25 lines
553 B
C#
Raw Normal View History

2025-01-17 13:10:42 +01:00
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);
}
}
}