Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ElapsedTime性能计数器的正确初始值是多少?当我的应用程序启动时,我.RawValue将性能计数器实例设置为 0,但这是不正确的。看起来它需要基于当前时间,但我不确定我应该使用的实际值是多少。
ElapsedTime
.RawValue
您应该将其设置为 Stopwatch.GetTimestamp();
Stopwatch.GetTimestamp();
请参阅此 MSDN 示例