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

This object remembers the time when an agent goes through. Later on when the agent goes through one of the corresponding TimeMeasureEnd objects, the time the agent spent between these two "marker" objects is measured.

How-To video: Measuring time in system

You must ensure that each agent going through this block later on goes through TimeMeasureEnd block mentioning this one as its pair.

Demo model: Measuring Length of Stay


On enter [code]
Code executed when the agent enters the block.
Local variable: T agent - the agent.


The input port.
The output port.