Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ThreadUtilities.cs
Go to the documentation of this file.
2
3namespace ReLogic.Threading;
4
5public static class ThreadUtilities
6{
7 public static void HighPrecisionSleep(double timeInMs)
8 {
9 double num = (double)Stopwatch.Frequency / 1000.0;
10 long num2 = Stopwatch.GetTimestamp() + (long)(timeInMs * num);
11 while (Stopwatch.GetTimestamp() < num2)
12 {
13 }
14 }
15}
static void HighPrecisionSleep(double timeInMs)
static readonly long Frequency
Definition Stopwatch.cs:13