prg_profile_earliest_time_get()

摘要

获取 profile 中数据条目的最早时间。

语法

prg_profile_earliest_time_get (profile_handle, options)
参数 类型 说明
profile_handle PrgT_Profile_Handle 目标 profile 的句柄。
options int 数据选项(见详情中的 options 参数)。

返回类型

PrgT_Date

profile 中的最早时间;若无法获取时间(例如 profile_handle 为 NULL,或 profile 为空、非基于时间),则返回 PRGC_DATE_VALUE_UNDEFINED。

头文件

prg_profile_funcs.h

详情

如果 profile 基于时间,此函数返回第一个已定义数据条目(即第一个具有 y 值的条目)的时间(x 值)。返回的时间为相对值。

options 参数

options 必须是 PRGC_PROFILE_DATA_OPT_NONE,或者是以下一个或多个选项的按位或(OR)组合:

  • PRGC_PROFILE_DATA_OPT_TIME_ABS——如果 profile 包含日历起始时间,返回的时间将被转换为实时日期值(自 1970 年 1 月 1 日以来的秒数);否则返回值仍为相对时间。
  • PRGC_PROFILE_DATA_OPT_INCLUDE_UNDEFINED——函数返回 profile 中的最早时间,无论该时刻的 y 值是否已定义。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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