BIS fnc codePerformance: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | arma3|= Game name | ||
| | |0.50|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Measures how much time it takes to execute given expression. |= Description | | Measures how much time it takes to execute given expression. | ||
In Arma 3, window with results is opened afterwards. | |||
[[File:BIS fnc codePerformance.png|300px]] | |||
|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 40: | Line 45: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Arma 3:_Functions|codePerformance]] | |||
[[Category:Take_On_Helicopters:_Functions|codePerformance]] | [[Category:Take_On_Helicopters:_Functions|codePerformance]] | ||
[[Category:Function Group: Debug|codePerformance]] | [[Category:Function Group: Debug|codePerformance]] |
Revision as of 09:41, 27 June 2013
Description
- Description:
- Measures how much time it takes to execute given expression. In Arma 3, window with results is opened afterwards.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [expression,(cycles)] call BIS_fnc_codePerformance;
- Parameters:
- expression: String - tested expression
- cycles (Optional): Number - Number of cycles (default: 10000)
- Return Value:
- Nothing
Examples
- Example 1:
testArray = []; ["testArray = testArray + [1];"] call BIS_fnc_codePerformance; testArray = []; ["testArray set [count testArray,1];"] call BIS_fnc_codePerformance;
Compare two methods of adding elements into array
Additional Information
- See also:
- See also needed
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