Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
time difference
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
It worked For me ; pls find the Code below :[/u]

Code:
Function Total_Execution_Time(Start_Time,End_Time)

    total number of seconds
    TotalTime_Secs  = Datediff("s",Start_Time,End_Time)

    'convert  total  Seconds into "Seconds only/ Mins+Secs/ Hrs+Mins+Secs"
    If TotalTime_Secs < 60 Then
        TotalTime = "Total Time Taken For Complete Execution = " & TotalTime_Secs  & " Second(s) Approx."
    ElseIf    TotalTime_Secs >=60 and TotalTime_Secs < 3600 Then
        TotalTime = "Total Time Taken For Complete Execution = " & int(TotalTime_Secs/60) & " Minute(s) and "& TotalTime_Secs Mod 60 & " Second(s) Approx."
    ElseIf    TotalTime_Secs >= 3600 Then
        TotalTime = "Total Time Taken For Complete Execution = " & int(TotalTime_Secs/3600) & " Hour(s) , " & int((TotalTime_Secs Mod 3600)/60)  & " Minute(s) and "& ((TotalTime_Secs Mod 3600 ) Mod 60) & " Second(s)  Approx."
    End If

    'Return the Message
    Total_Execution_Time = TotalTime
End Function
Reply


Messages In This Thread
time difference - by learner1 - 12-16-2009, 06:19 PM
RE: time difference - by learn_qa - 12-16-2009, 09:37 PM
RE: time difference - by Saket - 12-17-2009, 10:15 AM
RE: time difference - by rdemers25 - 12-17-2009, 09:48 PM
RE: time difference - by learner1 - 12-24-2009, 07:57 PM
RE: time difference - by Saket - 12-28-2009, 01:30 PM
RE: time difference - by learner1 - 12-28-2009, 09:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Difference in Window Identification Nagaraju6 0 2,066 12-06-2013, 07:08 PM
Last Post: Nagaraju6
  difference b/w Activex & delphi environment hello 0 2,574 01-10-2012, 03:38 PM
Last Post: hello
Exclamation What is the Difference between Standard, Maintenance and Update Run mode kai07 2 18,263 10-13-2011, 08:52 AM
Last Post: kai07
  difference between loadfunctionlibrary and executefile payal 1 15,693 09-22-2011, 08:33 PM
Last Post: Saket
  Anyone know the difference of the 2 statements martinlam 3 4,009 08-31-2010, 02:44 PM
Last Post: QTPLearn

Forum Jump:


Users browsing this thread: 3 Guest(s)