You copied the Doc URL to your clipboard.

API functionsfor information access

The functions in this section are used to obtain information about the simulation state.

getCycleCount

Returns the current cycle count.

uint64_t getCycleCount()
getTimeElapsed

Returns the elapsed simulation time, in clock cycles.

double getTimeElapsed (MxTimeUnit &unit )
getClockPeriod

Returns the clock period, that is, the durationof one clock cycle.

double getClockPeriod (MxTimeUnit &unit )
getSchedulerState

Returns the simulator state. The following statesare possible: MX_RUNNING or MX_HALTED

MxSimState getSchedulerState()
getTopComponent

Returns a pointer to the top-level component.

CASIModuleIF* getTopComponent()
Was this page helpful? Yes No