C#中的高精度计时器 [英] High precision timers in C#

查看:106
本文介绍了C#中的高精度计时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前需要一个高精度计时器.

I am currently in need of a high precision timer.


推荐答案

我认为StopWatch类正是您想要的. System.Diagnostics.StopWatch.

使用QueryPerformanceFrequency和QueryPerformanceCounter函数 进行计时.
I think the StopWatch class is what your looking for. System.Diagnostics.StopWatch.

That is using the QueryPerformanceFrequency and QueryPerformanceCounter functions for the timing.


这篇关于C#中的高精度计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆