MercuryTimer object in UFT

MercuryTimer object is used to measure the time required to execute certain part of the code. Below code displays the time elapsed in seconds.
 
'Start the timer
MercuryTimers("MyTimer").Start

'Perform transaction or any other testing operation
Wait 4

'stop the timer
MercuryTimers("MyTimer").Stop 

'Print the total time required to perform certain operation
Msgbox  "Time elapsed in seconds is -> " & MercuryTimers("MyTimer").ElapsedTime/1000  

Web development and Automation testing

solutions delivered!!