DotRecastNetSim/src/DotRecast.Core/FrequencyWatch.cs

11 lines
321 B
C#
Raw Normal View History

2023-04-06 12:48:36 +03:00
using System;
using System.Diagnostics;
namespace DotRecast.Core
{
2023-04-14 16:41:29 +03:00
public static class FrequencyWatch
2023-04-06 12:48:36 +03:00
{
public static readonly double Frequency = (double)TimeSpan.TicksPerSecond / Stopwatch.Frequency;
public static long Ticks => unchecked((long)(Stopwatch.GetTimestamp() * Frequency));
}
}