7 ms probably is too short for an electromechanical relay to reproduce reliably, but very easy for a solid state circuit.
How is it that you have this as a homework problem, but don't know about (let alone how to look up) the equation for R-C networks? What is the course you are in, and what...