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
iimGetStopwatch
Returns the data of the STOPWATCH command. If there is no STOPWATCH command in the macro then iimGetStopwatch returns only one value ("Total Runtime").
Syntax
Int ret = iimGetStopwatch ( 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:
iimGetStopwatch (1, name, value ) - returns 1st measurement, which is always the total runtime
iimGetStopwatch (2, name, value ) - returns 2nd measurement, if you have a STOPWATCH command in the macro (and so on)
Examples
Display the stopwatch 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.iimGetStopwatch (i, name, value) if iret > 0 then s = s + "Label: "+name + " --> "+ value + " s"+vbcrlf i = i+1 loop while iret > 0 MsgBox s