BIS fnc codePerformance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Created page with "{{Function|= Comments ____________________________________________________________________________________________ | TKOH |= Game name |1.00|= Game version ____________________...")
mNo edit summary
Line 41: Line 41:


[[Category:Take_On_Helicopters:_Functions|codePerformance]]
[[Category:Take_On_Helicopters:_Functions|codePerformance]]
[[Function Group: Debug|codePerformance]]

Revision as of 09:06, 27 October 2011

Hover & click on the images for description

Description

Description:
Measures how much time it takes to execute given expression.
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

Notes

Bottom Section

codePerformance