> I want to implement a counter that has a period of 1 hour. What is the
> right way (or best way) to do this? I figure out one way, but I had to
> implement all the code and not use any of the methods in the
> Diagnostics namespace (other than just setting the raw value of my
> counter).
Hi, Mountain. Our team has dealt with this problem also, and in the end we
decided to primarily use "total" counters, which simply count all
occurrences of the event since the application began (or even ever). Once
you have this, you can easily construct a tool that takes regular samples
and takes differences to construct a plot at any rate you desire.
Unfortunately Performance Monitor does not have this useful capability
built-in, but once you create such a tool you can use it in diverse
circumstances. I hope this helps.

Signature
Derrick Coetzee, MCP, MSFT (Speech Server)
This posting is provided "AS IS" with no warranties, and confers no
rights.
Mountain - 13 Aug 2005 15:19 GMT
Hi Derrick,
Thank you for your reply. It seems there are only 2 options: do it like
you did, or write a performance extension DLL. I'm not sure writing a
performance extension DLL is worth the effort given that the approach
you describe should work just as well.
Regards,
Mountain