DayOne
DayOne

Reputation: 1037

How do i write a "events per second" PerformanceCounter?

I'm currently using the PeformanceCounter Increment method. If I call this on every event will the PeformanceCounter framework calc the events per second? Or I have have to write the code to do this? If so does anyone have any examples?

Thanks

Upvotes: 3

Views: 1560

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038770

You need to define multiple counters: number of operations, average time per operation and average time per operation base. Here's a nice article that should help you get started.

Upvotes: 5

Related Questions