Forum Discussion
AlexKaras
14 years agoCommunity Hero
Hi Aneez,
Yes, this is possible with the use of the HISUtils.StopWatch object (http://support.smartbear.com/viewarticle/27989/).
The code is like this:
StopWatchObj :=
HISUtils.StopWatch;
StopWatchObj.Start;
// Open form here and wait until it is opened
StopWatchObj.Stop;
Log.Message(AQString.Format('Time to open form %s is %s', strFormName, StopWatchObj.ToString), StopWatchObj.ToString);
Note, that using above approach you will measure time it takes to open this or that form from the end-user point of view.
For the exact measurements of time spent in different code functions you should use profiling tool (like AQtime - http://smartbear.com/products/qa-tools/application-performance-profiling).
Yes, this is possible with the use of the HISUtils.StopWatch object (http://support.smartbear.com/viewarticle/27989/).
The code is like this:
StopWatchObj :=
HISUtils.StopWatch;
StopWatchObj.Start;
// Open form here and wait until it is opened
StopWatchObj.Stop;
Log.Message(AQString.Format('Time to open form %s is %s', strFormName, StopWatchObj.ToString), StopWatchObj.ToString);
Note, that using above approach you will measure time it takes to open this or that form from the end-user point of view.
For the exact measurements of time spent in different code functions you should use profiling tool (like AQtime - http://smartbear.com/products/qa-tools/application-performance-profiling).