Showing results for 
Search instead for 
Did you mean: 

How to get the elapsed time?

New Contributor

How to get the elapsed time?


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.


Santosh Kumar.M
Santosh Kumar
Community Hero

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;


-- 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?
  /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.
Frequent Contributor

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:
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file


How to execute remote test and obtain results via Test Runner REST API

Top Kudoed Authors