How to track time between two points?

Count the arrived products in the sink process and use the Halt statement to stop simulation once certain number is reached?

Or if you want to measure how long it took for each product to go through your layout, you’ll need to use timestamps in the product instances.
See here: Painting line simulation - #4 by TSy