我使用了由 TimerFactory 提供的高解析度的计时器(high-resolution timer),利用一个循环创建了相当数量的克隆出来的对象。表示流逝时间的数据是可靠的,受垃圾收集器的影响很小。
基于1个网页-相关网页
high resolution timer 高分辨率计时器 ; [计] 高分辨率定时器
double-resolution timer 多粒度时钟
Timer setting resolution 时间设定梯度
timer resolution 时钟粒度
Added support for high resolution timer mode to overcome FPS limits on some systems.
增加了对高分辨率定时器模式的支持,以克服在某些系统上的FPS限制。
By calling this function at the beginning and end of a section of code, an application essentially USES the counter as a high-resolution timer.
应用程序在一个代码段的前后调用这个函数来使用高性能计数器。
Next month, I'll discuss getting better timer resolution.
下个月,我将讨论获得更好的计时器分辨率。
应用推荐