名称
dev_update_time - 开启或关闭算子的时间测量。
用法
dev_update_time( : : DisplayMode : )
描述
dev_update_time控制是否显示算子的执行时间。
为了测量一系列算子的执行时间,应关闭所有更新选项,以减少HDevelop中GUI更新对运行时间的影响。 为此,可以使用算子dev_update_pc,dev_update_time,dev_update_var和dev_update_window或者程序dev_update_on和dev_update_off。
此选项也可以通过Preferences对话框进行控制:Edit -> Preferences -> Runtime Settings -> Show Processing Time.
注意
此算子不支持代码导出。
参数
DisplayMode (input_control) string → (string)
Mode for graphic output.Default value: 'off'
List of values: 'off', 'on'
结果
如果指定参数的值正确,则dev_update_time返回2(H_MSG_TRUE)。 否则会引发异常并返回错误代码。
See also
dev_update_pc, dev_update_window, dev_update_var
模块
Foundation
HDevelop例程
affine_transform_image.hdev Apply affine transformations to an image