Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HighPrecisionSleep()

static void ReLogic.Threading.ThreadUtilities.HighPrecisionSleep ( double timeInMs)
inlinestatic

Definition at line 7 of file ThreadUtilities.cs.

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 }
static readonly long Frequency
Definition Stopwatch.cs:13

References System.Diagnostics.Stopwatch.Frequency, and System.Diagnostics.Stopwatch.GetTimestamp().