BIS fnc codePerformance: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "BIS fnc " to "BIS_fnc_") |
||
Line 6: | Line 6: | ||
|gr1= Diagnostic | |gr1= Diagnostic | ||
|descr= [[File: | |descr= [[File:BIS_fnc_codePerformance.png|300px|right]] | ||
Measures how much time it takes to execute given expression. | Measures how much time it takes to execute given expression. | ||
Results may vary based on overall performance; use this function to compare alternative scripting approaches rather than to measure specific values. | Results may vary based on overall performance; use this function to compare alternative scripting approaches rather than to measure specific values. |
Revision as of 11:15, 27 July 2022
Description
- Description:
-
Measures how much time it takes to execute given expression. Results may vary based on overall performance; use this function to compare alternative scripting approaches rather than to measure specific values. Upon function execution, window with results is opened. The user then has a choice to copy the result into clipboard or not.
This function is using diag_codePerformance command. - Execution:
- call
- Groups:
- Diagnostic
Syntax
- Syntax:
- [expression, arguments, cycles, display] call BIS_fnc_codePerformance
- Parameters:
- expression: String - tested expression
- arguments: Anything - (Optional, default []) arguments to pass into the code
- cycles: Number - (Optional, default 10000) number of wanted cycles
- display: Display - (Optional, default findDisplay 46) display in which the message window with results will be opened. Use displayNull to disable the window
- Return Value:
- Number - Average execution time of the expression
Examples
- Example 1:
- Example 2:
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