BIS fnc codePerformance: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=") |
Lou Montana (talk | contribs) m (Text replacement - " +" to " ") |
||
Line 33: | Line 33: | ||
|seealso= [[diag_codePerformance]] | |seealso= [[diag_codePerformance]] | ||
}} | }} | ||
[[Category:{{Name|tkoh}}: Functions|{{uc:codePerformance}}]] | [[Category:{{Name|tkoh}}: Functions|{{uc:codePerformance}}]] |
Revision as of 23:44, 10 June 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Diagnostic
Syntax
- Syntax:
- Syntax needed
- Parameters:
- expression: String - Tested expression
- arguments (Optional): Anything - Arguments to pass into the code. Default: []
- cycles (Optional): Number - Number of wanted cycles. Default: 10000
- display (Optional): Display - Display in which the message window with results will be opened. Use displayNull to disable the window. Default: Current mission display
- Return Value:
- Number - Average execution time of the expression
Examples
- Example 1:
testArray = []; ["testArray = testArray + [1]"] call BIS_fnc_codePerformance; testArray = []; ["testArray set [count testArray, 1]"] call BIS_fnc_codePerformance; testArray = []; ["testArray pushBack 1"] call BIS_fnc_codePerformance;
Compare three methods of adding elements into array
Additional Information
- See also:
- diag_codePerformance
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note