Timer that starts at the initial time with a value of 0,
and gets reset each time the input signal switches to
false.
For example, if the simulation starts at t = 10 and at
t=11, the input becomes false, then the timer
outputs y=t-10 for t < 11, and y=t-11
afterwards, unless the input becomes false again.
Modified from IBPSA Library