Fandom

武装突袭 Wiki

diag_codePerformance

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

Introduced with Arma 3 Development Branch version 1.57
  

点击图片可看到更多讯息

开始使用于

游戏:
Arma 3 Development Branch
版本:
1.57

描述

描述:
Attempts to run given code with given arguments given number of cycles in unscheduled environment and returns average time it took to run the code as well as actual number of executions performed. The command will return as soon as possible if the tested code is slow and the duration of the command exceeds 1 second. Engine alternative to BIS_fnc_codePerformance

基本句法

句法:
diag_codePerformance [code, arguments, cycles]
参数:
[code, arguments, cycles]: Array

code: Code - code to compare performance

arguments (Optional): Anything - arguments to pass to the code in _this variable. Default: nil

cycles (Optional): Number - wanted number of cycles to run the given code. > 1000 is recommended. Default: 100000
返回值:
Array - format [duration, cycles], where:

  • duration: Number - average duration of 1 execution in milliseconds
  • cycles: Number - actual number of cycles executed

范例

范例1:
_result = diag_codePerformance [{private _a = 123;}, 0, 10000];

额外资讯

多人游戏:
-
也可以看看:

diag_log

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Bottom Section

更多维基

随机维基