prg_profile_data_length_get_bt()

摘要

获取 profile 中符合时间约束的数据条目数量。

语法

prg_profile_data_length_get_bt (profile_handle, start_time, options)
参数 类型 说明
profile_handle const PrgT_Profile_Handle 目标 profile 的句柄。
start_time PrgT_Date 起始时间。
options int 数据选项(见详情中的 options 参数)。

返回类型

unsigned int

profile 中符合时间约束的数据条目数量。

头文件

prg_profile_funcs.h

详情

如果 start_time 为 PRGC_DATE_VALUE_UNDEFINED,则返回 profile 中数据条目的总数。否则,函数只统计时间等于或晚于 start_time 的数据条目。

options 参数

options 必须是以下值之一:

  • PRGC_PROFILE_DATA_OPT_NONE——默认行为
  • PRGC_PROFILE_DATA_OPT_INCLUDE_INITIAL——如果 start_time 落在两个条目之间,此选项会使 start_time 之前的最后一个条目也被计入(其 x 值被改为 start_time)。

注意: 要获得已弃用函数 prg_profile_data_length_get() 的功能,请在调用此函数时将 start_time 设为 PRGC_DATE_VALUE_UNDEFINED。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com