3

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.

Eric Schoonover
  • 47,184
  • 49
  • 157
  • 202

1 Answers1

4

You should set it to Stopwatch.GetTimestamp();

See this MSDN example

H H
  • 263,252
  • 30
  • 330
  • 514