op_sim_base_time_get()

Abstract

Gets the start time of a network model.

Syntax

op_sim_base_time_get ()
Argument Type Description
no arguments

Return Type

PrgT_Date

The network base time.

Example

double     ev_time;
PrgT_Date    base_time, sched_time;
char       date_str_buf[128];
int        date_str_size;



/* get scheduled time of next event as string */

ev_time = op_ev_time (op_ev_next (op_ev_current()));

/* Add scheduled event time to network base time */
base_time = op_sim_base_time_get();
if (prg_date_offset_add (base_time, ev_time, &sched_time))
	{
	/* put in string */
	date_str_size = sizeof (date_str_buf);
	prg_date_to_string_convert (sched_time, PrgC_Date_String_Format_Standard,
		0, &date_str_buf, &date_str_size);
	}

Details

None.

Purpose

Provides a way to obtain the network start time of a network model. This time can be used with the prg_date APIs (described in Chapter 3 “Date Package” on page 21) to compute simulation times.

For more information about how Riverbed Modeler models time, see “Network Time: Calendar, Relative, and Network Start Times“ on page 329.

Errors

  • No errors are trapped.

Reference

  • None.

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