高性能定时器VS秒表 [英] High-Performance Timer vs StopWatch

查看:220
本文介绍了高性能定时器VS秒表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道,如果 HiPerfTimer 或的StopWatch 类是基准更好,为什么?

Does anyone know if the HiPerfTimer or the StopWatch class is better for benchmarking, and why?

推荐答案

秒表是基于高分辨率定时器(如果有的话),你可以检查与 IsHighResolution

Stopwatch is based on High resolution timer (where available), you can check that with IsHighResolution

这篇关于高性能定时器VS秒表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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