UnityGame/Library/PackageCache/com.unity.test-framework.performance/Runtime/Measurements/FrametimeMeasurement.cs

15 lines
298 B
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
using UnityEngine;
namespace Unity.PerformanceTesting.Measurements
{
internal class FrameTimeMeasurement : MonoBehaviour
{
public SampleGroup SampleGroup;
void Update()
{
Measure.Custom(SampleGroup, Time.unscaledDeltaTime * 1000);
}
}
}