[+] 接入ET8服务端

[+] 接入ET8服务端
This commit is contained in:
ALEXTANG
2023-07-13 12:23:48 +08:00
parent e0be062006
commit 336d4b2eb9
1316 changed files with 130657 additions and 626 deletions

View File

@@ -0,0 +1,21 @@
using System.Runtime.InteropServices;
namespace ET
{
public static class WinPeriod
{
// 一般默认的精度不止1毫秒不同操作系统有所不同需要调用timeBeginPeriod与timeEndPeriod来设置精度
[DllImport("winmm")]
private static extern void timeBeginPeriod(int t);
//[DllImport("winmm")]
//static extern void timeEndPeriod(int t);
public static void Init()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
timeBeginPeriod(1);
}
}
}
}