time difference - 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: time difference (/Thread-time-difference) |
time difference - learner1 - 12-16-2009 i had started my execution at Start_time = time and it ended at End_time = time now i want the differnec in hrs and mins that how much time it has taken to execute like TotalTime =End_time -Start_time can anybody send me the code for same RE: time difference - learn_qa - 12-16-2009 You can build a custom function using the built-in functions :- Hour, minute, Second. RE: time difference - Saket - 12-17-2009 you can use 'Timer' in your script. e.g Code: StartTime = Timer RE: time difference - rdemers25 - 12-17-2009 The only problem with Timer is if you run overnight, it won't work right. because the timer is the seconds in the day and starts back at 0 at the beginning of the day. RE: time difference - learner1 - 12-24-2009 It worked For me ; pls find the Code below :[/u] Code: Function Total_Execution_Time(Start_Time,End_Time) RE: time difference - Saket - 12-28-2009 Thats great learner1, always put the formatted code here, use proper tags while posting. This helps your posts making more readable. RE: time difference - learner1 - 12-28-2009 Sure Saket Next will take care!! |