문제

What is the proper initial value for an ElapsedTime performance counter? When my app starts up I am setting the .RawValue of the performance counter instance to 0 but that is not correct. It looks like it needs to be based on the current time but I'm not sure what is the actual value I should be using.

도움이 되었습니까?

해결책

You should set it to Stopwatch.GetTimestamp();

See this MSDN example

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top