Micro Focus QTP (UFT) Forums
Sript Timer - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Sript Timer (/Thread-Sript-Timer)



Sript Timer - Anna - 07-24-2008

Is there a function that times how long a script took to run and reports the results?


RE: Sript Timer - prince3105 - 07-24-2008

Use below code

Code:
StartTime = now
   'Your scripts
EndTime = now

TransactionTime = EndTime - StartTime
Msgbox TransactionTime

Or Simply use QTP-Insert-Start Transaction, End transaction