A Functional Limit Theorem for stochastic integrals driven by a time