Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ThreadUtilities.cs
Go to the documentation of this file.
1
using
System.Diagnostics
;
2
3
namespace
ReLogic.Threading
;
4
5
public
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
}
ReLogic.Threading.ThreadUtilities.HighPrecisionSleep
static void HighPrecisionSleep(double timeInMs)
Definition
ThreadUtilities.cs:7
ReLogic.Threading.ThreadUtilities
Definition
ThreadUtilities.cs:6
System.Diagnostics.Stopwatch.Frequency
static readonly long Frequency
Definition
Stopwatch.cs:13
System.Diagnostics.Stopwatch.GetTimestamp
static long GetTimestamp()
Definition
Stopwatch.cs:77
System.Diagnostics.Stopwatch
Definition
Stopwatch.cs:6
ReLogic.Threading
Definition
AsyncActionDispatcher.cs:6
System.Diagnostics
Definition
AggregationManager.cs:6
source
ReLogic
ReLogic.Threading
ThreadUtilities.cs
Generated by
1.10.0