This is a migrated thread and some comments may be shown as answers.

Measuring total wait time

2 Answers 36 Views
Monitor integration
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Derek
Top achievements
Rank 1
Derek asked on 04 Apr 2017, 01:15 AM

In a WinForms .NET application we use TrackFeatureStart/Stop to record total usage time and individual feature usages.  As well as telling me about the performance of key features, this lets me calculate an overall "efficiency" metric, i.e. total feature time / total session time = efficiency.  This technique captures some performance issues but not all, as often we have performance issues with something that we are not already measuring as a feature.  Is there an approach that lets me hook into the WinForms API at a low level and record all time that the user is not facing a blinking cursor?

I propose that we use a stopwatch that I can start before all operations and then stop when the user has control again, reporting the total elapsed time at the end of the session using TrackFeatureValue.  Is there a better way?

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Darin
Telerik team
answered on 04 Apr 2017, 08:45 AM
Hello,

Do you mean measuring the total time the application spent in a "frozen" state? I am not sure if such low level API exists in WinForms. Concerning your approach using a Stopwatch, this seems like the best way to accumulate the "user wait time" during operations and report it as a feature value at the end of the session.

Regards,
Darin
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Derek
Top achievements
Rank 1
answered on 04 Apr 2017, 10:44 PM

Hi Darin,

Yes I did mean in a frozen state.  I was not sure that I could get the data I needed from the analytics client but have just discovered the API so I'm sure I can get it now.

Tags
Monitor integration
Asked by
Derek
Top achievements
Rank 1
Answers by
Darin
Telerik team
Derek
Top achievements
Rank 1
Share this question
or