cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the elapsed time?

New Contributor

How to get the elapsed time?

Hi,



After script execution, i want to get the total elapsed time(i.e Wait time, Sync time and Timers) of script. How to get the total elapsed time, It will greatly help for your suggestions.



Regards,

Santosh Kumar.M
Santosh Kumar
2 REPLIES 2
Highlighted
Community Hero

RE: How to get the elapsed time?

Hi Santosh,



> [...] i want to get the total elapsed time(i.e Wait time, Sync time and Timers) of script [...]

Not sure what you meant with "Wait time, Sync time and Timers", but if you like to get the total test execution time  you may either

-- Switch to the Summary panel of the Log;

or

-- On the Project Log panel select the top element of the Log Items tree;

-- In the Project Log pane (the one on the right from the Log Items) right-click and select Show Summary in the context menu;

-- On the opened Summary right-click below the Run Time column and select Sum in the context menu.



Does this help?
Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Highlighted
Frequent Contributor

RE: How to get the elapsed time?

Hi Santosh,



Using StopWatch you can get the elapsed time.



try below code:

Set objWatch =HISUtils.StopWatch

objWatch.Start 'Use before first statement



objwatch.Split 'Use after last statement



Split will give you the elapsed time in milisecods
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors