Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/336.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何检查和设置Windows 10“;系统心跳“/C#中的分辨率? 《C++》中有一个API用来检查和设置系统心跳。这似乎是正确的方法,但我不知道C++_C# - Fatal编程技术网

如何检查和设置Windows 10“;系统心跳“/C#中的分辨率? 《C++》中有一个API用来检查和设置系统心跳。这似乎是正确的方法,但我不知道C++

如何检查和设置Windows 10“;系统心跳“/C#中的分辨率? 《C++》中有一个API用来检查和设置系统心跳。这似乎是正确的方法,但我不知道C++,c#,C#,我尝试了几种方法: `WinApi.TimeBeginPeriod(1) Jim Michel的建议在Kirsan的帖子中进行了讨论 我想在方法运行时设置它,以获得类似于Task.Delay或Thread.Sleep的精度为1ms,而不是15.6ms或windows的默认系统心跳。我希望获得尽可能接近1ms的实时精度

我尝试了几种方法: `WinApi.TimeBeginPeriod(1)

Jim Michel的建议在Kirsan的帖子中进行了讨论

我想在方法运行时设置它,以获得类似于
Task.Delay
Thread.Sleep
的精度为1ms,而不是15.6ms或windows的默认系统心跳。我希望获得尽可能接近1ms的实时精度