When the Boolean input u becomes true, the timer starts and the output y is the time that has elapsed since u became true. When the input becomes false, the timer stops and the output is reset to zero.