Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PerfFirst & PrefOut Usage - Total Time in Hours & Minutes
#1
Greetings,

I am a bit confused about the usage of PerfFirst & PerfOut.

I need to accomplish the following:

1) Out the start time of a macro
2) Out the end time of a macro
3) Out the total time taken in hh:mm format

Kindly advise how I should go about it.

Best Regards,
Philip
Best Regards,
Philip
#2
These functions are used to easily measure code execution time.
For what you need, better use class DateTime.

Macro Macro2461
Code:
Copy      Help
out

DateTime t1 t2
str sStart sEnd sTime
t1.FromComputerTime
sStart=t1.ToStr(8)

#region macro
wait RandomNumber
#endregion

t2.FromComputerTime
sEnd=t2.ToStr(8)

sTime=TimeSpanToStr(t2-t1 2)

out sStart
out sEnd
out sTime


Forum Jump:


Users browsing this thread: 1 Guest(s)