When the Boolean input "u" becomes true, the timer is started and the output "y" is the time from the time instant where u became true.
When the timer is stopped the output retains its value and then continues when "u" becomes true again.
This enables a measurement of the total time the input was true over the simulation.