Is there a function that times how long a script took to run and reports the results?
Use below code
Code:
StartTime = now
'Your scripts
EndTime = now
TransactionTime = EndTime - StartTime
Msgbox TransactionTime
Or Simply use QTP-Insert-Start Transaction, End transaction