Is it possible to get the real time passed since the start of a simulation?

Categories:
Solution Number:
S20611
Last Modified:
2013-08-20
Issue

Is it possible to get the real time passed since the start of a simulation?

Solution

It is not possible to get real time using the OPNET Kernel Procedures. However, you can use the C standard library facilities to do this. Get the current simulation time in the init state of a process model, and then call time() any time you want to find out the 'difference' by subtracting the initial time from the current time.

Environment

DES Kernel->Other

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case