TimeMeasureEnd


TimeMeasureEnd as well as TimeMeasureStart compose a pair of objects measuring the time the agents spend between them (given points in a flowchart), such as "time in system", "length of stay", etc.

For each incoming agent this object measures the time it spent since it has been through one of the corresponding TimeMeasureStart objects. There can be more than one TimeMeasureEnd object referencing a number of TimeMeasureStart objects.

How-To video: Measuring time in system

The statistics collected is available in the form of a distribution (HistogramData object distribution) and in the form of a dataset (Dataset object dataset).

Agents do not spend any time at this block.

Demonstration model: Measuring Length of Stay

Parameters

TimeMeasureStart blocks
Specify one or several TimeMeasureStart blocks where time measuring starts (and ends here, in this TimeMeasureEnd block).
Add blocks into the list either by clicking the button and choosing the names from the list, or clicking the button and selecting the required blocks in the graphical editor
Syntax: TimeMeasureStart[] startObjects
Dataset capacity
Capacity of the object's dataset where the time measure history is kept - maximum number of data samples that can be stored in this dataset.
Syntax: int datasetCapacity
Default value: 100
Actions
On enter [code]
Code executed when the agent enters the block.
Local variable: T agent - the agent

Variables

DataSet dataset
Data set that stores for each incoming agent the time it spent since it has been through one of the corresponding TimeMeasureStart objects.
HistogramData distribution
Histogram data object that stores distribution of time agents spent since they have been through one of the corresponding TimeMeasureStart

Functions

void resetStats() - resets the statistics collected for this object in dataset and distribution data items.

Ports

in
The input port.
out
The output port.