Adaug proiectul Unity

This commit is contained in:
2026-11-01 23:39:55 +02:00
parent cb14d9d37d
commit 863eac8f2c
23463 changed files with 5412601 additions and 0 deletions
@@ -0,0 +1,19 @@
namespace Unity.PerformanceTesting.Meters
{
/// <summary>
/// Provides stopwatch functionality for measuring time
/// </summary>
internal interface IStopWatch
{
/// <summary>
/// Resets and starts the stopwatch
/// </summary>
void Start();
/// <summary>
/// Takes a split time since start of stopwatch
/// </summary>
/// <returns>Time passed since start in milliseconds</returns>
double Split();
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c9c6fc292cac43d7a2bc05803fd5f49f
timeCreated: 1614770905
@@ -0,0 +1,22 @@
using System.Diagnostics;
namespace Unity.PerformanceTesting.Meters
{
/// <summary>
/// Takes use of System.Diagnostics.Stopwatch to provide stopwatch functionality implementing IStopWatch
/// </summary>
internal class StopWatch : IStopWatch
{
private readonly Stopwatch m_StopWatch = Stopwatch.StartNew();
public void Start()
{
m_StopWatch.Restart();
}
public double Split()
{
return m_StopWatch.Elapsed.TotalMilliseconds;
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: daadf59f728a42a795a0ce3559352f4d
timeCreated: 1614771565