【发布时间】:2009-02-13 13:56:02
【问题描述】:
我想知道是否有用于精确时间测量(如函数的执行时间)的“.net 集成”解决方案?目前我正在使用来自 Kernel32 的 PerformanceCounters。
[DllImport("Kernel32.dll")]
private static extern bool QueryPerformanceCounter(
out long lpPerformanceCount);
[DllImport("Kernel32.dll")]
private static extern bool QueryPerformanceFrequency(
out long lpFrequency);
【问题讨论】:
标签: c# .net performancecounter