The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
iimGetPerformace
Available since v6.85.
Returns the data of the STOPWATCH command. If there is no STOPWATCH command in the macro then iimGetLastPerformance returns only one value ("Total Runtime").
Syntax
Int ret = iimGetPerformance ( int index, string name, string value)
Parameters
in: index: The index of the measurement to get
out: name: The name of the STOPWATCH label
out: value: The performance measurement
The return value is 1 if a value exits for a given index, or -1 if no data is available.
Examples:
iimGetPerformance (1, name, value ) - returns 1st measurement, which is always the total runtime
iimGetPerformance (2, name, value ) - returns 2nd measurement, if you have a STOPWATCH command in the macro (and so on)
Examples
Display the performance data from a macro (Visual Basic Script example):
'Get stopwatch values Dim name, value,i i = 1 s = "Performance Data"+vbcrlf+vbcrlf do iret = iim1.iimGetPerformance (i, name, value) if iret > 0 then s = s + "Label: "+name + " --> "+ value + " s"+vbcrlf i = i+1 loop while iret > 0