Quantum mechanics of measurements distributed in time. A path-integral formulation.