forked from mirror/DotRecast
11 lines
316 B
C#
11 lines
316 B
C#
|
using System;
|
|||
|
using System.Diagnostics;
|
|||
|
|
|||
|
namespace DotRecast.Core
|
|||
|
{
|
|||
|
public static class TickWatch
|
|||
|
{
|
|||
|
public static readonly double Frequency = (double)TimeSpan.TicksPerSecond / Stopwatch.Frequency;
|
|||
|
public static long Ticks => unchecked((long)(Stopwatch.GetTimestamp() * Frequency));
|
|||
|
}
|
|||
|
}
|